Warning: This hook has been deprecated. Use ‘wp_check_comment_disallowed_list’ instead.

wp_blacklist_check WordPress Hook

The wp_blacklist_check hook allows you to check if a given IP address or email address is blacklisted. If the IP address or email address is blacklisted, the user will be unable to register or comment on your Wordpress site.

do_action_deprecated( 'wp_blacklist_check', string $author, string $email, string $url, string $comment, string $user_ip, string $user_agent ) #

Fires before the comment is tested for disallowed characters or words.


Parameters

$author

(string)Comment author.

$email

(string)Comment author's email.

$url

(string)Comment author's URL.

$comment

(string)Comment content.

$user_ip

(string)Comment author's IP address.

$user_agent

(string)Comment author's browser user agent.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Use 'wp_check_comment_disallowed_list' instead.
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More