Get the data link attribute for a setting.
Parameters
$setting_key
stringoptionalDefault:
'default'
Source
public function get_link( $setting_key = 'default' ) {
if ( isset( $this->settings[ $setting_key ] ) && $this->settings[ $setting_key ] instanceof WP_Customize_Setting ) {
return 'data-customize-setting-link="' . esc_attr( $this->settings[ $setting_key ]->id ) . '"';
} else {
return 'data-customize-setting-key-link="' . esc_attr( $setting_key ) . '"';
}
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.