WordPress开发者和主题制作者的搜索引擎



wp_customize_url ›

Since3.4.0
已弃用n/a
wp_customize_url ( $stylesheet = null )
参数:
  • (string) $stylesheet Optional. Theme to customize. Defaults to current theme. The theme's stylesheet will be urlencoded if necessary.
    Required: No
    默认: null
返回:
  • (string)
定义在:
文档:

Returns a URL to load the Customizer.



源码

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