A WordPress-centric search engine for devs and theme authors



get_the_terms ›

Since3.1.0
Deprecatedn/a
apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy )
Parameters: (3)
  • (array|WP_Error) $terms List of attached terms, or WP_Error on failure.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
  • (string) $taxonomy Name of the taxonomy.
    Required: Yes
Defined at:
Codex:

Filters the list of terms attached to the given post.





Source

$terms = apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy );