get_the_terms WordPress Filter Hook
The get_the_terms function is a powerful tool for retrieving information about the terms associated with a post. This function can be used to get the term objects for a post, or to get an array of term IDs for a post. It can also be used to get the term objects for a specific taxonomy.
apply_filters( 'get_the_terms', WP_Term[]|WP_Error $terms , int $post_id , string $taxonomy ) #
Filters the list of terms attached to the given post.
Parameters
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |