validate_strict_text( string $text, array $extra_canonical_words = array() ): \WP_Error|nullReject value if any banned whole-token (or phrase) matches.
public static
Class: Kernowdev\Clanbite\Wordban
Parameters
$text(string) RequiredText to check.
$extra_canonical_words(array<int, string>) OptionalExtra 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
| Version | Description |
|---|---|
| 1.3.0 | Updated. |