get_term

过滤钩子


apply_filters( 'get_term', $_term, $taxonomy )
参数
  • (WP_Term)
    $_term
    Term object.
    Required:
  • (string)
    $taxonomy
    The taxonomy slug.
    Required:
定义位置
  • wp-includes/taxonomy.php
    , line 971
引入
4.4.0
弃用

Filters a taxonomy term object.

The {@see ‘get_$taxonomy’} hook is also available for targeting a specific
taxonomy.

$_term = apply_filters( 'get_term', $_term, $taxonomy );