Codex tools: Log in
Contents |
Get 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.
<?php wp_get_current_commenter() ?>
Array (
['comment_author'] => 'Harriet Smith,
['comment_author_email'] => 'hsmith@,example.com',
['comment_author_url'] => 'http://example.com/'
)
Since: 2.0.4
wp_get_current_commenter() is located in wp-includes/comment.php.