apply_filters( ‘wp_get_current_commenter’, array $comment_author_data )

In this article

Filters the current commenter’s name, email, and URL.

Parameters

$comment_author_dataarray
An array of current commenter variables.
  • comment_author string
    The name of the current commenter, or an empty string.
  • comment_author_email string
    The email address of the current commenter, or an empty string.
  • comment_author_url string
    The URL address of the current commenter, or an empty string.

Source

return apply_filters( 'wp_get_current_commenter', compact( 'comment_author', 'comment_author_email', 'comment_author_url' ) );

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.