apply_filters( 'get_the_terms', array|WP_Error $terms, int $post_id, string $taxonomy )

Filters the list of terms attached to the given post.


Parameters

$terms

(array|WP_Error) List of attached terms, or WP_Error on failure.

$post_id

(int) Post ID.

$taxonomy

(string) Name of the taxonomy.


Source

File: wp-includes/category-template.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.1.0 Introduced.