apply_filters( 'wp_get_object_terms', array $terms, int|array $object_ids, string $taxonomies, array $args )

Filters the terms for a given object or objects.


Description

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


Parameters

$terms

An array of terms for the given object or objects.

$object_ids

Object ID or array of IDs.

$taxonomies

SQL-formatted (comma-separated and quoted) list of taxonomy names.

$args

An array of arguments for retrieving terms for the given object(s). See wp_get_object_terms() for details.


Source

File: wp-includes/taxonomy.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.8.0 Introduced.