WordPress开发者和主题制作者的搜索引擎



get_{$taxonomy} ›

Since4.4.0
已弃用n/a
apply_filters( "get_{$taxonomy}", $_term, $taxonomy )
参数: (2)
  • (WP_Term) $_term Term object.
    Required: Yes
  • (string) $taxonomy The taxonomy slug.
    Required: Yes
定义在:
文档:

Filters a taxonomy term object.

The dynamic portion of the filter name, $taxonomy, refers to the slug of the term's taxonomy.





源码

$_term = apply_filters( "get_{$taxonomy}", $_term, $taxonomy );