comment_form_logged_in_after
Fires after the is_user_logged_in() check in the comment form.
Description
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.
- // run the action
- do_action( 'comment_form_logged_in_after', $commenter, $user_identity );
- The following example is for adding a hook callback.
- // define the comment_form_logged_in_after callback
- function action_comment_form_logged_in_after( $commenter, $user_identity ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'comment_form_logged_in_after', 'action_comment_form_logged_in_after', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- do_action( 'comment_form_logged_in_after', $commenter, $user_identity );