wppaste
WordPress

apply_filters( 'get_object_terms', \WP_Term[]|int[]|string[]|string $terms, int[] $object_ids, string[] $taxonomies, array $args )

Since
4.2.0
Filters the terms for a given object or objects.

Parameters

$terms\WP_Term[]|int[]|string[]|string
Array of terms or a count thereof as a numeric string.
$object_idsint[]
Array of object IDs for which terms were retrieved.
$taxonomiesstring[]
Array of taxonomy names from which terms were retrieved.
$argsarray
Array of arguments for retrieving terms for the given object(s). See wp_get_object_terms() for details.

Fired at · 1

  • wp-includes/taxonomy.php:2338wp_get_object_terms()

Source

	 * @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.	 */	$terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomies, $args ); 	$object_ids = implode( ',', $object_ids );	$taxonomies = "'" . implode( "', '", array_map( 'esc_sql', $taxonomies ) ) . "'"; 	/**	 * Filters the terms for a given object or objects.

History

Introduced in 4.2.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.