WordPress at a glance
filter is not described

wp_get_object_terms filter-hook . WP 2.8.0

Filters the terms for a given object or objects.

The $taxonomies parameter passed to this filter is formatted as a SQL fragment. The 'get_object_terms' filter is recommended as an alternative.


add_filter( 'wp_get_object_terms', 'filter_function_name_8253', 10, 4 );
function filter_function_name_8253( $terms, $object_ids, $taxonomies, $args ){
	// filter...

	return $terms;
An array of terms for the given object or objects.
Object ID or array of IDs.
SQL-formatted (comma-separated and quoted) list of taxonomy names.
An array of arguments for retrieving terms for the given object(s). See wp_get_object_terms() for details.


Since 2.8.0 Introduced.

Where the hook is called

wp-includes/taxonomy.php 2056
return apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args );

Where the hook is used (in WP core)

wp-includes/default-filters.php 486
add_filter( 'wp_get_object_terms', '_post_format_wp_get_object_terms' );