Filters the array of categories to return for a post.
$categoriesWP_Term[]
$post_idint|false
return apply_filters( 'get_the_categories', $categories, $post_id );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_the_categories