A WordPress-centric search engine for devs and theme authors



wp_customize_url ›

Since3.4.0
Deprecatedn/a
wp_customize_url ( $stylesheet = null )
Parameters:
  • (string) $stylesheet Optional. Theme to customize. Defaults to current theme. The theme's stylesheet will be urlencoded if necessary.
    Required: No
    Default: null
Returns:
  • (string)
Defined at:
Codex:

Returns a URL to load the Customizer.



Source

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