WordPress at a glance
function is not described

WP_Customize_Control::get_link() public WP 3.4.0

Get the data link attribute for a setting.

{} It's a method of the class: WP_Customize_Control{}

No Hooks.

Return

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.

Usage

$WP_Customize_Control = new WP_Customize_Control();
$WP_Customize_Control->get_link( $setting_key );
$setting_key(string)

Default: 'default'

Changelog

Since 3.4.0 Introduced.
Since 4.9.0 Return a data-customize-setting-key-link attribute if a setting is not registered for the supplied setting key.

Code of WP_Customize_Control::get_link() WP 5.5.2

<?php
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 ) . '"';
	}
}