Launch Offer – Kirki PRO is now available! 🚀Get it while it lasts!

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,
	]
);

Last updated on: January 21st, 2022

Scroll to Top

Download

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