apply_filters( 'the_category_list', WP_Term[] $categories, int|bool $post_id )
Filters the categories before building the category list.
Parameters
- $categories
-
(WP_Term[]) An array of the post's categories.
- $post_id
-
(int|bool) ID of the post we're retrieving categories for. When
false
, we assume the current post in the loop.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_category_list