wp_customize_url( string $stylesheet = '' )

Returns a URL to load the Customizer.


Description Description


Parameters Parameters

$stylesheet

(string) (Optional) Theme to customize. Defaults to current theme. The theme's stylesheet will be urlencoded if necessary.

Default value: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

File: wp-includes/theme.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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