comment_form_logged_in

FILTER wp-includes\comment-template.php (ligne 2757) github
Filters the 'logged in' message for the comment form for display.

Paramètres

Entrée :
$args['logged_in_as'], $commenter, $user_identity
Sortie :
@param string $args_logged_in The HTML for the 'logged in as [user]' message,
@param array  $commenter      An array containing the comment author's
@param string $user_identity  If the commenter is a registered user,

Utilisation

// Modifier la valeur avec le filtre 'comment_form_logged_in'
add_filter('comment_form_logged_in', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($args['logged_in_as']) {
    // Modifier la valeur
    return $args['logged_in_as'];
}

Actualités

Chargement des actualités...