wp_customize_url()
Returns a URL to load the Customizer.
No Hooks.
Returns
String.
Usage
wp_customize_url( $stylesheet );
- $stylesheet(string)
- Theme to customize. The theme's stylesheet will be urlencoded if necessary.
Default:active theme
Changelog
| Since 3.4.0 | Introduced. |
wp_customize_url() wp customize url code WP 7.0
function wp_customize_url( $stylesheet = '' ) {
$url = admin_url( 'customize.php' );
if ( $stylesheet ) {
$url = add_query_arg( 'theme', urlencode( $stylesheet ), $url );
}
return esc_url( $url );
}