wp_get_current_commenter


wp_get_current_commenter ( No parameters )

See:
Returns:
  • (array) { An array of current commenter variables. @type string $comment_author The name of the current commenter, or an empty string. @type string $comment_author_email The email address of the current commenter, or an empty string. @type string $comment_author_url The URL address of the current commenter, or an empty string. }
Defined at:

Description

Gets current commenter's name, email, and URL.Expects cookies content to already be sanitized. User of this function might wish to recheck the returned array for validity.

Related Functions

wp_get_current_user, _wp_get_current_user, wp_set_current_user, wp_count_comments, get_current_screen

Top Google Results

User discussions

wpseek mobile