get_object_terms

get_object_terms

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('get_object_terms') is found 1 times:

  • /wp-includes/taxonomy.php line 2338
    	 * @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.
    

See this hook used in plugins: