wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_customize_url › WordPress Function

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

Returns a URL to load the Customizer.



Source

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