Change “logged in as a ” link in comments form
We could try to rebuild the HTML through the comment_form_logged_in filter, where the HTML is constructed by default as: ‘<p class=”logged-in-as”>’ . sprintf( /* translators: 1: edit user link, 2: accessibility text, 3: user name, 4: logout URL */ __( ‘<a href=”https://wordpress.stackexchange.com/questions/276188/%1$s” aria-label=”%2$s”>Logged in as %3$s</a>. <a href=”%4$s”>Log out?</a>’ ), get_edit_user_link(), /* translators: %s: user … Read more