Uses
| Uses | Description |
|---|---|
| wp-includes/formatting.php: esc_url() | Checks and cleans a URL. |
| wp-includes/link-template.php: admin_url() | Retrieves the URL to the admin area for the current site. |
Returns a URL to load the Customizer.
(string) (Optional) Theme to customize. Defaults to current theme. The theme's stylesheet will be urlencoded if necessary.
Default value: ''
(string)
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 );
} | Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_customize_url