apply_filters( 'the_category_list', array $categories , int|bool $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 we're retrieving categories for. When
false
, we assume the current post in the loop.
Source
Changelog
Version | Description |
---|---|
WP-4.4.0 | Introduced. |