WP_Customize_Control::get_link

SummerySummery

Get the data link attribute for a setting.

Syntax

WP_Customize_Control::get_link( string $setting_key = 'default' )

ParametersParameters

$setting_key

(string) (Optional)

Default value: 'default'

ReturnReturn

(string) Data link parameter, a data-customize-setting-link attribute if the $setting_key refers to a pre-registered setting, and a data-customize-setting-key-link attribute if the setting is not yet registered.

SourceSource

File: wp-includes/class-wp-customize-control.php


			

ChangelogChangelog

Changelog
Version Description
4.9.0 Return a data-customize-setting-key-link attribute if a setting is not registered for the supplied setting key.
3.4.0 Introduced.
Scroll to Top