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);
}