Filters the categories before building the category list.
$categoriesWP_Term[]
$post_idint|false
false, defaults to the current post in the loop.$categories = apply_filters( 'the_category_list', get_the_category( $post_id ), $post_id );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_category_list