wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_the_categories › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'get_the_categories', $categories, $post_id )
Parametry: (2)
  • () categories An array of categories to return for the post.
    Wymagane: Tak
  • () post_id The post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the array of categories to return for a post.





Źródło

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