apply_filters( ‘pre_comment_author_name’, string $author_cookie )

In this article

Filters the comment author’s name cookie before it is set.

Description

When this filter hook is evaluated in wp_filter_comment() , the comment author’s name string is passed.

Parameters

$author_cookiestring
The comment author name cookie.

Source

$comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

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