comment_form_logged_in_after

Fires after the is_user_logged_in() check in the comment form.

Description

do_action( 'comment_form_logged_in_after', (array) $commenter, (string) $user_identity ); 

Parameters (2)

0. $commenter (array)
An array containing the comment author's username, email, and URL.
1. $user_identity (string)
If the commenter is a registered user, the display name, blank otherwise.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); 
The following example is for adding a hook callback.
  1. // define the comment_form_logged_in_after callback 
  2. function action_comment_form_logged_in_after( $commenter, $user_identity ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'comment_form_logged_in_after', 'action_comment_form_logged_in_after', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'comment_form_logged_in_after', 'action_comment_form_logged_in_after', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/wp-includes/comment-template.php  
  1. do_action( 'comment_form_logged_in_after', $commenter, $user_identity );