wp_customize_url()WP 3.4.0

Returns a URL to load the Customizer.

No Hooks.

Return

String.

Usage

wp_customize_url( $stylesheet );
$stylesheet(string)
Theme to customize. The theme's stylesheet will be urlencoded if necessary.
Default: active theme

Changelog

Since 3.4.0 Introduced.

wp_customize_url() code WP 6.5.2

function wp_customize_url( $stylesheet = '' ) {
	$url = admin_url( 'customize.php' );
	if ( $stylesheet ) {
		$url .= '?theme=' . urlencode( $stylesheet );
	}
	return esc_url( $url );
}