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



the_category_list › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'the_category_list', get_the_category( $post_id )
参数: (2)
  • () categories An array of the post's categories.
    Required: Yes
  • () post_id ID of the post to retrieve categories for. When `false`, defaults to the current post in the loop.
    Required: Yes
定义在:
文档:

Filters the categories before building the category list.





源码

$categories = apply_filters( 'the_category_list', get_the_category( $post_id ), $post_id );