pre_comment_author_name WordPress Filter Hook
The pre_comment_author_name hook is called when the comment author's name is processed before saving the comment in the database.
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_cookie
(string)The comment author name cookie.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |