comment_form_logged_in_after
Fires after the is_user_logged_in() check in the comment form.
Использование
add_action( 'comment_form_logged_in_after', 'wp_kama_comment_form_logged_in_after_action', 10, 2 ); /** * Function for `comment_form_logged_in_after` action-hook. * * @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 void */ function wp_kama_comment_form_logged_in_after_action( $commenter, $user_identity ){ // action... }
- $commenter(массив)
- An array containing the comment author's username, email, and URL.
- $user_identity(строка)
- If the commenter is a registered user, the display name, blank otherwise.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
comment_form_logged_in_after
wp-includes/comment-template.php 2740
do_action( 'comment_form_logged_in_after', $commenter, $user_identity );