{$taxonomy}_{$field}

FILTER wp-includes\taxonomy.php (ligne 1914) github
Filters the taxonomy field sanitized for display. The dynamic portions of the filter name, `$taxonomy`, and `$field`, refer to the taxonomy slug and taxonomy field, respectively.

Paramètres

Entrée :
$value, $term_id, $context
Sortie :
@param mixed  $value   Value of the taxonomy field.
@param int    $term_id Term ID.
@param string $context Context to retrieve the taxonomy field value.

Utilisation

// Modifier la valeur avec le filtre '{$taxonomy}_{$field}'
add_filter('{$taxonomy}_{$field}', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($value) {
    // Modifier la valeur
    return $value;
}

Actualités

Chargement des actualités...