WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_object_terms

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/taxonomy.php apply_filters 2267 /**
* 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.
*/

Hook Parameters

Parameter 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