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



get_the_terms › WordPress Filter Hooks

Seit3.1.0
Veraltetn/v
apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy )
Parameter: (3)
  • () terms Array of attached terms, or WP_Error on failure.
    Erforderlich: Ja
  • () post_id Post ID.
    Erforderlich: Ja
  • () taxonomy Name of the taxonomy.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the list of terms attached to the given post.





Quellcode

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