wp_blacklist_check action-hook . WP 1.5.0
Deprecated in from version 5.5.0. It is no longer supported and can be removed in future releases. See wp_check_comment_disallowed_list.
Deprecated: 5.5.0 Use {@see 'wp_check_comment_disallowed_list'} instead.
Fires before the comment is tested for disallowed characters or words.
Usage
add_action( 'wp_blacklist_check', 'action_function_name_1575', 10, 4 ); function action_function_name_1575( $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 1339-1345
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.' ) );