apply_filters( 'the_category_list', WP_Term[] $categories , int|false $post_id )
Filters the categories before building the category list.
Parameters
- $categories
-
An array of the post's categories.
- $post_id
-
ID of the post to retrieve categories for.<br> When
false
, defaults to the current post in the loop.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |