wp_get_object_terms_args filter-hook . WP 4.9.0
Filters arguments for retrieving object terms.
Usage
add_filter( 'wp_get_object_terms_args', 'filter_function_name_5849', 10, 3 ); function filter_function_name_5849( $args, $object_ids, $taxonomies ){ // filter... return $args; }
- $args(array)
- An array of arguments for retrieving terms for the given object(s). See {@see wp_get_object_terms()} for details.
- $object_ids(int[])
- Array of object IDs.
- $taxonomies(string[])
- Array of taxonomy names to retrieve terms from.
Changelog
Since 4.9.0 | Introduced. |
Where the hook is called
wp-includes/taxonomy.php 2086
$args = apply_filters( 'wp_get_object_terms_args', $args, $object_ids, $taxonomies );