On this page
apply_filters( 'the_category_list', WP_Term[] $categories, int|false $post_id )
Filters the categories before building the category list.
Parameters
$categoriesWP_Term[]-
An array of the post's categories.
$post_idint|false-
ID of the post to retrieve categories for.
Whenfalse, defaults to the current post in the loop.
Source
File: wp-includes/category-template.php. View all references
$categories = apply_filters( 'the_category_list', get_the_category( $post_id ), $post_id );
Related
Used By
| Used By | Description |
|---|---|
| get_the_category_list() wp-includes/category-template.php | Retrieves category list for a post in either HTML list or custom format. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_category_list