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



wp_customize_url › WordPress Function

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

Returns a URL to load the Customizer.



源码

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