wpseek.com
A WordPress-centric search engine for devs and theme authors



the_category_list › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'the_category_list', get_the_category( $post_id )
Parameters: (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
Defined at:
Codex:

Filters the categories before building the category list.





Source

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