get_tags

过滤钩子


apply_filters( 'get_tags', $tags, $args )
参数
  • (WP_Term[]|int|WP_Error)
    $tags
    Array of ‘post_tag’ term objects, a count thereof,
    or WP_Error if any of the taxonomies do not exist.
    Required:
  • (array)
    $args
    An array of arguments. @see get_terms()
    Required:
定义位置
  • wp-includes/category.php
    , line 311
引入
2.3.0
弃用

Filters the array of term objects returned for the ‘post_tag’ taxonomy.

$tags = apply_filters( 'get_tags', $tags, $args );