comment_form_field_{$name}

FILTER wp-includes\comment-template.php (ligne 2840) github
Filters a comment form field for display. The dynamic portion of the hook name, `$name`, refers to the name of the comment form field. Possible hook names include:  - `comment_form_field_comment`  - `comment_form_field_author`  - `comment_form_field_email`  - `comment_form_field_url`  - `comment_form_field_cookies`

Paramètres

Entrée :
$field
Sortie :
@param string $field The HTML-formatted output of the comment form field.

Utilisation

// Modifier la valeur avec le filtre 'comment_form_field_{$name}'
add_filter('comment_form_field_{$name}', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...