Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_the_terms ›

Desde3.1.0
Obsoleton/a
apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy )
Parâmetros: (3)
  • (WP_Term[]|WP_Error) $terms Array 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
Definido em:
Codex:

Filters the list of terms attached to the given post.





Fonte

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