comment_form_before_fields

ACTION wp-includes\comment-template.php (ligne 2819) github
Fires before the comment fields in the comment form, excluding the textarea.

Paramètres

Entrée :
N/A
Sortie :
N/A

Utilisation

// Ajouter une fonction au hook action 'comment_form_before_fields'
add_action('comment_form_before_fields', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee() {
    // Votre code ici
    error_log('Hook comment_form_before_fields déclenché');
}

Actualités

Chargement des actualités...