comment_form_logged_in filter-hook . WP 3.0.0
Filters the 'logged in' message for the comment form for display.
Usage
add_filter( 'comment_form_logged_in', 'filter_function_name_2833', 10, 3 ); function filter_function_name_2833( $args_logged_in, $commenter, $user_identity ){ // filter... return $args_logged_in; }
- $args_logged_in(string)
- The logged-in-as HTML-formatted message.
- $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_logged_in
wp-includes/comment-template.php 2575
echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity );