Filter hook 'get_object_terms'

in WP Core File wp-includes/taxonomy.php at line 2337

Description

Filters the terms for a given object or objects.

Occurrences

Filename Line Number
wp-includes/taxonomy.php 2337

Parameters

Type Name Description
WP_Term[]|int[]|string[]|string $terms Array of terms or a count thereof as a numeric string.
int[] $object_ids Array of object IDs for which terms were retrieved.
string[] $taxonomies Array of taxonomy names from which terms were retrieved.
array $args Array of arguments for retrieving terms for the given object(s). See wp_get_object_terms() for details.

PHP Doc

/**
	 * Filters the terms for a given object or objects.
	 *
	 * @since 4.2.0
	 *
	 * @param WP_Term[]|int[]|string[]|string $terms      Array of terms or a count thereof as a numeric string.
	 * @param int[]                           $object_ids Array of object IDs for which terms were retrieved.
	 * @param string[]                        $taxonomies Array of taxonomy names from which terms were retrieved.
	 * @param array                           $args       Array of arguments for retrieving terms for the given
	 *                                                    object(s). See wp_get_object_terms() for details.
	 */