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



the_tags ›

Since2.3.0
已弃用n/a
apply_filters( 'the_tags', get_the_term_list( $id, 'post_tag', $before, $sep, $after )
参数: (5)
  • (string) $tag_list List of tags.
    Required: Yes
  • (string) $before String to use before tags.
    Required: Yes
  • (string) $sep String to use between the tags.
    Required: Yes
  • (string) $after String to use after tags.
    Required: Yes
  • (int) $id Post ID.
    Required: Yes
定义在:
文档:

Filters the tags list for a given post.





源码

return apply_filters( 'the_tags', get_the_term_list( $id, 'post_tag', $before, $sep, $after ), $before, $sep, $after, $id );