wp_blacklist_check
Deprecated from version 5.5.0. It is no longer supported and can be removed in future releases. See wp_check_comment_disallowed_list.
Fires before the comment is tested for disallowed characters or words.
Usage
add_action( 'wp_blacklist_check', 'wp_kama_blacklist_check_action', 10, 4 ); /** * Function for `wp_blacklist_check` action-hook. * * @param string $author Comment author. * @param string $email Comment author's email. * @param string $url Comment author's URL. * @param string $comment Comment content. * * @return void */ function wp_kama_blacklist_check_action( $author, $email, $url, $comment ){ // action... }
- $author(string)
- Comment author.
- $email(string)
- Comment author's email.
- $url(string)
- Comment author's URL.
- $comment(string)
- Comment content.
Changelog
Since 1.5.0 | Introduced. |
Deprecated since 5.5.0 | Use {@see 'wp_check_comment_disallowed_list'} instead. |
Where the hook is called
wp_blacklist_check
wp-includes/comment.php 1321-1327
do_action_deprecated( 'wp_blacklist_check', array( $author, $email, $url, $comment, $user_ip, $user_agent ), '5.5.0', 'wp_check_comment_disallowed_list', __( 'Please consider writing more inclusive code.' ) );