wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



get_the_categories › WordPress Filter Hooks

Seit4.4.0
Veraltetn/v
apply_filters( 'get_the_categories', $categories, $post_id )
Parameter: (2)
  • () categories An array of categories to return for the post.
    Erforderlich: Ja
  • () post_id The post ID.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the array of categories to return for a post.





Quellcode

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