On this page
apply_filters( 'pre_comment_author_name', string $author_cookie )
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
File: wp-includes/comment.php. View all references
$comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] );
Related
Used By
| Used By | Description |
|---|---|
| wp_filter_comment() wp-includes/comment.php | Filters and sanitizes comment data. |
| sanitize_comment_cookies() wp-includes/comment.php | Sanitizes the cookies sent to the user already. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_comment_author_name