global_terms_enabled
apply_filters( ‘global_terms_enabled’, null $enabled )
筛选挂钩:筛选是否启用全局术语。
Filter Hook: Filters whether global terms are enabled.
说明(Description)
将非空值传递给筛选器将有效地使函数短路,而是返回“启用全局术语”站点选项的值。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$enabled | (null) | 是否启用全局术语。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-includes/functions.php:5577 | 1 | 0 |
global_terms_enabled 为WP2原创文章,链接:https://www.wp2.cn/hook/global_terms_enabled-2/