This page redirects to an external site: https://developer.wordpress.org/reference/functions/wp_blacklist_check/
Description
Check if a comment contains blacklisted characters or words.
Usage
<?php wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent); ?>
Parameters
- $author
- (string) (required) The author of the comment
- Default: None
- $email
- (string) (required) The email address of the comment author
- Default: None
- $url
- (string) (required) The website address of the comment author
- Default: None
- $comment
- (string) (required) The content text of the comment
- Default: None
- $user_ip
- (string) (required) The IP address of the comment author
- Default: None
- $user_agent
- (string) (required) The user agent of the comment author's browser. (or sometimes of the spamming robot)
- Default: None
Return Values
- (boolean)
- True if comment contains blacklisted content, false if comment does not
Examples
Notes
Change Log
Since: 1.5.0
Source File
wp_blacklist_check() is located in wp-includes/comment.php
Related