wp_customize_url

函数
wp_customize_url ( $stylesheet = '' )
参数
  • (string) $stylesheet Optional. Theme to customize. Defaults to active theme. The theme's stylesheet will be urlencoded if necessary.
    Required:
    Default: (empty)
返回值
  • (string)
定义位置
相关方法
_wp_customize_includewp_customize_support_scriptis_customize_previewwp_admin_bar_customize_menuwp_parse_url
引入
3.4.0
弃用
-

wp_customize_url: 这是一个过滤钩子,允许你修改WordPress定制器的URL。如果你想自定义URL以配合你的网站的品牌,或者让用户更容易访问自定义器,这可能很有用。

返回一个URL来加载自定义器。

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 09:09:35

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: