On this page
apply_filters( 'get_the_categories', WP_Term[] $categories, int|false $post_id )
Filters the array of categories to return for a post.
Parameters
$categoriesWP_Term[]-
An array of categories to return for the post.
$post_idint|false-
The post ID.
Source
File: wp-includes/category-template.php. View all references
return apply_filters( 'get_the_categories', $categories, $post_id );
Related
Used By
| Used By | Description |
|---|---|
| get_the_category() wp-includes/category-template.php | Retrieves post categories. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_the_categories