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'


Top ↑

Source

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

	public function link( $setting_key = 'default' ) {
		echo $this->get_link( $setting_key );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.