Clanbite

validate_strict_text( string $text, array $extra_canonical_words = array() ): \WP_Error|null

Reject value if any banned whole-token (or phrase) matches.

public static

Class: Kernowdev\Clanbite\Wordban

Parameters

$text (string) Required

Text to check.

$extra_canonical_words (array<int, string>) Optional

Extra banned words/phrases merged with the defaults and option list.

Default: array()

Returns

\WP_Error|null Null when allowed.

Defined in inc/class-wordban.php

Changelog

VersionDescription
1.3.0Updated.