wordpress / latest / functions / wp_customize_url.html

wp_customize_url( string $stylesheet = '' ): string

Returns a URL to load the Customizer.

Parameters

$stylesheet string Optional
Theme to customize. Defaults to active theme.
The theme's stylesheet will be urlencoded if necessary.

Default: ''

Return

string

Source

File: wp-includes/theme.php. View all references

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

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
3.4.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_customize_url