WordPress hook directory
pre_comment_author_name

Description

Applied to a comment author's user name prior to saving the comment in the database.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for pre_comment_author_name

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
1.5.2 wp-includes/functions-post.php 464 View in context filter
2.0 wp-includes/comment-functions.php 98 View in context filter
2.0.11 wp-includes/comment-functions.php 105 View in context filter
2.0.11 wp-includes/comment-functions.php 893 View in context filter
2.1 wp-includes/comment.php 156 View in context filter
2.1 wp-includes/comment.php 360 View in context filter
2.2 wp-includes/comment.php 157 View in context filter
2.2 wp-includes/comment.php 361 View in context filter
2.3 wp-includes/comment.php 160 View in context filter
2.3 wp-includes/comment.php 372 View in context filter
2.5 wp-includes/comment.php 293 View in context filter
2.5 wp-includes/comment.php 624 View in context filter
2.6 wp-includes/comment.php 313 View in context filter
2.6 wp-includes/comment.php 668 View in context filter
2.7 wp-includes/comment.php 368 View in context filter
2.7 wp-includes/comment.php 916 View in context filter
2.8 wp-includes/comment.php 372 View in context filter
2.8 wp-includes/comment.php 930 View in context filter
2.9 wp-includes/comment.php 457 View in context filter
2.9 wp-includes/comment.php 1141 View in context filter
3.0 wp-includes/comment.php 513 View in context filter
3.0 wp-includes/comment.php 1206 View in context filter
3.1 wp-includes/comment.php 571 View in context filter
3.1 wp-includes/comment.php 1264 View in context filter
3.2 wp-includes/comment.php 583 View in context filter
3.2 wp-includes/comment.php 1275 View in context filter
3.3 wp-includes/comment.php 583 View in context filter
3.3 wp-includes/comment.php 1275 View in context filter
3.4 wp-includes/comment.php 601 View in context filter
3.4 wp-includes/comment.php 1289 View in context filter
3.5 wp-includes/comment.php 634 View in context filter
3.5 wp-includes/comment.php 1328 View in context filter
3.6 wp-includes/comment.php 636 View in context filter
3.6 wp-includes/comment.php 1325 View in context filter
3.7 wp-includes/comment.php 648 View in context filter
3.7 wp-includes/comment.php 1340 View in context filter
3.8 wp-includes/comment.php 704 View in context filter
3.8 wp-includes/comment.php 1627 View in context filter
3.9 wp-includes/comment.php 706 View in context filter
3.9 wp-includes/comment.php 1610 View in context filter
4.0 wp-includes/comment.php 764 View in context filter
4.0 wp-includes/comment.php 1702 View in context filter
4.1 wp-includes/comment.php 1051 View in context filter
4.1 wp-includes/comment.php 1987 View in context filter
4.2 wp-includes/comment.php 1249 View in context filter
4.2 wp-includes/comment.php 2195 View in context filter
4.3 wp-includes/comment.php 1300 View in context filter
4.3 wp-includes/comment.php 2261 View in context filter
4.4 wp-includes/comment.php 521 View in context filter
4.4 wp-includes/comment.php 1582 View in context filter
4.5 wp-includes/comment.php 542 View in context filter
4.5 wp-includes/comment.php 1658 View in context filter
4.6 wp-includes/comment.php 540 View in context filter
4.6 wp-includes/comment.php 1660 View in context filter
4.7 wp-includes/comment.php 556 View in context filter
4.7 wp-includes/comment.php 1813 View in context filter
4.8 wp-includes/comment.php 556 View in context filter
4.8 wp-includes/comment.php 1807 View in context filter
4.9 wp-includes/comment.php 568 View in context filter
4.9 wp-includes/comment.php 1841 View in context filter
5.0 wp-includes/comment.php 570 View in context filter
5.0 wp-includes/comment.php 1843 View in context filter
5.1 wp-includes/comment.php 589 View in context filter
5.1 wp-includes/comment.php 1935 View in context filter

Related Hooks

We find related hooks using word stems. pre_comment_author_name has 3 significant word stem(s): comment, author, name. Note that some of the hooks below may not appear in all versions of WP.