get_categories_taxonomy
apply_filters( ‘get_categories_taxonomy’, string $taxonomy , array $args )
过滤器::过滤调用get_categories()时用于检索术语的分类法。
Filter Hook: Filters the taxonomy used to retrieve terms when calling get_categories().
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$taxonomy | (string) | 检索术语的分类法。 |
$args | (array) | 一组参数。请参阅get_terms()。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.7.0 | wp-includes/category.php:37 | 1 | 0 |
get_categories_taxonomy 为WP2原创文章,链接:https://www.wp2.cn/hook/get_categories_taxonomy/