On this page
apply_filters( 'wp_get_current_commenter', array $comment_author_data )
Filters the current commenter’s name, email, and URL.
Parameters
$comment_author_dataarray-
An array of current commenter variables.
comment_authorstringThe name of the current commenter, or an empty string.comment_author_emailstringThe email address of the current commenter, or an empty string.comment_author_urlstringThe URL address of the current commenter, or an empty string.
Source
File: wp-includes/comment.php. View all references
return apply_filters( 'wp_get_current_commenter', compact( 'comment_author', 'comment_author_email', 'comment_author_url' ) );
Related
Used By
| Used By | Description |
|---|---|
| wp_get_current_commenter() wp-includes/comment.php | Gets current commenter’s name, email, and URL. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_current_commenter