A WordPress-centric search engine for devs and theme authors



the_category_list ›

Since4.4.0
Deprecatedn/a
apply_filters( 'the_category_list', get_the_category( $post_id )
Parameters: (2)
  • (array) $categories An array of the post's categories.
    Required: Yes
  • (int|bool) $post_id ID of the post we're retrieving categories for. When `false`, we assume 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 );