comment_form_logged_in_after

ACTION wp-includes\comment-template.php (ligne 2769) github
Fires after the is_user_logged_in() check in the comment form.

Paramètres

Entrée :
$commenter, $user_identity
Sortie :
@param array  $commenter     An array containing the comment author's
@param string $user_identity If the commenter is a registered user,

Utilisation

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

function ma_fonction_personnalisee($commenter, $user_identity) {
    // Votre code ici
    error_log('Hook comment_form_logged_in_after déclenché');
}

Actualités

Chargement des actualités...