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.
N/A
Sortie :
// 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é');
}
Chargement des actualités...