Filter hook 'get_the_terms'

in WP Core File wp-includes/category-template.php at line 1314

Description

Filters the list of terms attached to the given post.

Occurrences

Filename Line Number
wp-includes/category-template.php 1314

Parameters

Type Name Description
WP_Term[]|WP_Error $terms Array of attached terms, or WP_Error on failure.
int $post_id Post ID.
string $taxonomy Name of the taxonomy.

PHP Doc

/**
	 * Filters the list of terms attached to the given post.
	 *
	 * @since 3.1.0
	 *
	 * @param WP_Term[]|WP_Error $terms    Array of attached terms, or WP_Error on failure.
	 * @param int                $post_id  Post ID.
	 * @param string             $taxonomy Name of the taxonomy.
	 */