wp_get_object_terms

Advertisement

Summery Summery

Filters the terms for a given object or objects.

Syntax Syntax

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

Description 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 Parameters

$terms

(array) Array of terms for the given object or objects.

$object_ids

(int[]) Array of object IDs for which terms were retrieved.

$taxonomies

(string[]) Array of taxonomy names from which terms were retrieved.

$args

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

Source Source

File: wp-includes/taxonomy.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?