get_categories_taxonomy

过滤钩子


apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args )
参数
  • (string)
    $taxonomy
    Taxonomy to retrieve terms from.
    Required:
  • (array)
    $args
    An array of arguments. See get_terms().
    Required:
定义位置
  • wp-includes/category.php
    , line 38
引入
2.7.0
弃用

Filters the taxonomy used to retrieve terms when calling get_categories().

$args['taxonomy'] = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );