wp_customize_url( string $stylesheet = null )
Returns a URL to load the Customizer.
Parameters
- $stylesheet
-
(Optional) Theme to customize. Defaults to current theme. The theme's stylesheet will be urlencoded if necessary.
Default value: null
Return
(string)
Source
File: wp-includes/theme.php
function wp_customize_url( $stylesheet = null ) {
$url = admin_url( 'customize.php' );
if ( $stylesheet )
$url .= '?theme=' . urlencode( $stylesheet );
return esc_url( $url );
}
Changelog
Version | Description |
---|---|
WP-3.4.0 | Introduced. |