Filters the terms for a given object or objects.
$terms, $object_ids, $taxonomies, $args
Sortie :
@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
// Modifier la valeur avec le filtre 'get_object_terms'
add_filter('get_object_terms', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($terms) {
// Modifier la valeur
return $terms;
}
Chargement des actualités...