Un motore di ricerca WordPress per sviluppatori e autori di temi



get_the_terms ›

Da3.1.0
Deprecaton/a
apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy )
Parametri: (3)
  • (WP_Term[]|WP_Error) $terms Array of attached terms, or WP_Error on failure.
    Richiesto:
  • (int) $post_id Post ID.
    Richiesto:
  • (string) $taxonomy Name of the taxonomy.
    Richiesto:
Definito a:
Codex:

Filters the list of terms attached to the given post.





Sorgenti

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