wp_customize_url( string $stylesheet = '' ): string

In this article

Returns a URL to load the Customizer.

Parameters

$stylesheetstringoptional
Theme to customize. Defaults to active theme.
The theme’s stylesheet will be urlencoded if necessary.

Default:''

Return

string

Source

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

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.