Title: wp_get_object_terms_args
Published: November 20, 2017
Last modified: February 24, 2026

---

# apply_filters( ‘wp_get_object_terms_args’, array $args, int[] $object_ids, string[] $taxonomies )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#wp--skip-link--target)

Filters arguments for retrieving object terms.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#parameters)󠁿

 `$args`array

An array of arguments for retrieving terms for the given object(s).
 See [wp_get_object_terms()](https://developer.wordpress.org/reference/functions/wp_get_object_terms/)
for details.

`$object_ids`int[]

Array of object IDs.

`$taxonomies`string[]

Array of taxonomy names to retrieve terms from.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#source)󠁿

    ```php
    $args = apply_filters( 'wp_get_object_terms_args', $args, $object_ids, $taxonomies );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/taxonomy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/taxonomy.php#L2307)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/taxonomy.php#L2307-L2307)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_get_object_terms()](https://developer.wordpress.org/reference/functions/wp_get_object_terms/)`wp-includes/taxonomy.php` |

Retrieves the terms associated with the given object(s), in the supplied taxonomies.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_get_object_terms_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.9.0](https://developer.wordpress.org/reference/since/4.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_get_object_terms_args%2F)
before being able to contribute a note or feedback.