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