WordPress at a glance
filter is not described

wp_get_current_commenter filter-hook . WP 3.1.0

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


add_filter( 'wp_get_current_commenter', 'filter_function_name_3382' );
function filter_function_name_3382( $comment_author_data ){
	// filter...

	return $comment_author_data;

An array of current commenter variables.

  • $comment_author (string)
    The name of the author of the comment.
    Default: ''

  • $comment_author_email (string)
    The email address of the $comment_author.
    Default: ''

  • $comment_author_url (string)
    The URL address of the $comment_author.
    Default: ''

Where the hook is called

wp-includes/comment.php 1791
return apply_filters( 'wp_get_current_commenter', compact( 'comment_author', 'comment_author_email', 'comment_author_url' ) );

Where the hook is used (in WP core)

Использование не найдено.