WP_Customize_Control::link() WordPress Method
The WP_Customize_Control::link() method is used to create a link to a resource for a Customizer control. This is useful for linking to resources such as JavaScript or CSS files that are needed for the control to function.
WP_Customize_Control::link( string $setting_key = 'default' ) #
Render the data link attribute for the control’s input element.
Parameters
- $setting_key
(string)(Optional)
Default value: 'default'
Source
File: wp-includes/class-wp-customize-control.php
public function link( $setting_key = 'default' ) { echo $this->get_link( $setting_key ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |