comment_form_logged_in filter-hookWP 3.0.0

Filters the 'logged in' message for the comment form for display.

Usage

add_filter( 'comment_form_logged_in', 'wp_kama_comment_form_logged_in_filter', 10, 3 );

/**
 * Function for `comment_form_logged_in` filter-hook.
 * 
 * @param string $args_logged_in The HTML for the 'logged in as [user]' message, the Edit profile link, and the Log out link.
 * @param array  $commenter      An array containing the comment author's username, email, and URL.
 * @param string $user_identity  If the commenter is a registered user, the display name, blank otherwise.
 *
 * @return string
 */
function wp_kama_comment_form_logged_in_filter( $args_logged_in, $commenter, $user_identity ){

	// filter...
	return $args_logged_in;
}
$args_logged_in(string)
The HTML for the 'logged in as [user]' message, the Edit profile link, and the Log out link.
$commenter(array)
An array containing the comment author's username, email, and URL.
$user_identity(string)
If the commenter is a registered user, the display name, blank otherwise.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

comment_form()
comment_form_logged_in
wp-includes/comment-template.php 2729
echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity );

Where the hook is used in WordPress

Usage not found.