comment_form_comments_closed

ACTION wp-includes\comment-template.php (ligne 2507) github
Fires after the comment form if comments are closed. For backward compatibility, this action also fires if comment_form() is called with an invalid post object or ID.

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...