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



get_the_terms › WordPress Filter Hooks

Since3.1.0
Deprecatedn/a
apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy )
Parameters: (3)
  • () terms Array of attached terms, or WP_Error on failure.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
  • () 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 );