WordPress Customizer Upload Control

Learn how to create an upload control using the Kirki Customizer Framework.

Back to Controls

Returnsstring

The upload control is identical to the image control, the only difference is that it allows uploading more file types and not only images.

Usage

<?php
$file_url = get_theme_mod( 'my_setting', '' );
printf( esc_html__( 'URL of uploaded file: %s', 'kirki' ), $file_url );
?>

Can't find what you're looking for? Check the github issues or edit this page to add what's missing.