wp_using_themes

函数
wp_using_themes ( No parameters )
返回值
  • (bool) True if themes should be used, false otherwise.
定义位置
相关方法
wp_get_themeswp_paused_themeswp_get_themewp_update_themeswp_is_using_https
引入
5.1.0
弃用
-

wp_using_themes: 这个函数检查WordPress是否正在使用主题。如果WordPress正在使用主题,它返回true,否则返回false。

确定当前请求是否应该使用主题。

function wp_using_themes() {
	/**
	 * Filters whether the current request should use themes.
	 *
	 * @since 5.1.0
	 *
	 * @param bool $wp_using_themes Whether the current request should use themes.
	 */
	return apply_filters( 'wp_using_themes', defined( 'WP_USE_THEMES' ) && WP_USE_THEMES );
}

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 14:32:54

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

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

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