wpseek.com
A WordPress-centric search engine for devs and theme authors



get_the_categories › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'get_the_categories', $categories, $post_id )
Parameters: (2)
  • () categories An array of categories to return for the post.
    Required: Yes
  • () post_id The post ID.
    Required: Yes
Defined at:
Codex:

Filters the array of categories to return for a post.





Source

return apply_filters( 'get_the_categories', $categories, $post_id );