URL

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

Example

new \Kirki\Field\URL(
	[
		'settings' => 'url_setting',
		'label'    => esc_html__( 'URL Control', 'kirki' ),
		'section'  => 'section_id',
		'default'  => 'https://yoururl.com/',
		'priority' => 10,
	]
);

Was this helpful?