WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp blacklist check

This page is marked as incomplete. You can help Codex by expanding it.

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