wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_the_terms › Filtr WordPress Hooks

Od3.1.0
Przestarzałyn/a
› apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy )
Parametry: (3)
  • () terms Array of attached terms, or WP_Error on failure.
    Wymagane: Tak
  • () post_id Post ID.
    Wymagane: Tak
  • () taxonomy Name of the taxonomy.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the list of terms attached to the given post.





Źródło

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