wp_customize_url

The timeline below displays how wordpress function wp_customize_url has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Returns a URL to load the Customizer.
 *
 * @since 3.4.0
 *
 * @param string $stylesheet Optional. Theme to customize. Defaults to active theme.
 *                           The theme's stylesheet will be urlencoded if necessary.
 * @return string
 */
function wp_customize_url($stylesheet = '')
{
    $url = admin_url('customize.php');
    if ($stylesheet) {
        $url .= '?theme=' . urlencode($stylesheet);
    }
    return esc_url($url);
}

WordPress Version: 5.3

/**
 * Returns a URL to load the Customizer.
 *
 * @since 3.4.0
 *
 * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
 *                           The theme's stylesheet will be urlencoded if necessary.
 * @return string
 */
function wp_customize_url($stylesheet = '')
{
    $url = admin_url('customize.php');
    if ($stylesheet) {
        $url .= '?theme=' . urlencode($stylesheet);
    }
    return esc_url($url);
}

WordPress Version: 5.1

/**
 * Returns a URL to load the Customizer.
 *
 * @since 3.4.0
 *
 * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
 *                           The theme's stylesheet will be urlencoded if necessary.
 * @return string
 */
function wp_customize_url($stylesheet = null)
{
    $url = admin_url('customize.php');
    if ($stylesheet) {
        $url .= '?theme=' . urlencode($stylesheet);
    }
    return esc_url($url);
}

WordPress Version: 4.3

/**
 * Returns a URL to load the Customizer.
 *
 * @since 3.4.0
 *
 * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
 * 	                         The theme's stylesheet will be urlencoded if necessary.
 * @return string
 */
function wp_customize_url($stylesheet = null)
{
    $url = admin_url('customize.php');
    if ($stylesheet) {
        $url .= '?theme=' . urlencode($stylesheet);
    }
    return esc_url($url);
}

WordPress Version: 4.1

/**
 * Returns a URL to load the Customizer.
 *
 * @since 3.4.0
 *
 * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
 * 	The theme's stylesheet will be urlencoded if necessary.
 */
function wp_customize_url($stylesheet = null)
{
    $url = admin_url('customize.php');
    if ($stylesheet) {
        $url .= '?theme=' . urlencode($stylesheet);
    }
    return esc_url($url);
}

WordPress Version: 3.7

/**
 * Returns a URL to load the theme customizer.
 *
 * @since 3.4.0
 *
 * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
 * 	The theme's stylesheet will be urlencoded if necessary.
 */
function wp_customize_url($stylesheet = null)
{
    $url = admin_url('customize.php');
    if ($stylesheet) {
        $url .= '?theme=' . urlencode($stylesheet);
    }
    return esc_url($url);
}