Filters the comment author’s name cookie before it is set.
When this filter hook is evaluated in wp_filter_comment() , the comment author’s name string is passed.
$author_cookiestring
$comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] );
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_comment_author_name