link

The link control is a simple text-input control, with URL sanitization. Values are sanitized using the esc_url_raw() function.

Example:

Kirki::add_field( 'theme_config_id', [
	'type'     => 'link',
	'settings' => 'link_setting',
	'label'    => __( 'Link Control', 'kirki' ),
	'section'  => 'section_id',
	'default'  => 'https://mapsteps.com/',
	'priority' => 10,
] );

Last updated on: May 10th, 2020

Scroll to Top

Download

Subscribe & be the first to be informed about
new features & updates!