class WordbanRegisters hooks and implements matching/masking for the Clanbite word filter.
class final
- Full name
Kernowdev\Clanbite\Wordban
Methods
action_user_profile_update_errors()Block banned material in profile fields (classic profile / admin).clear_caches()Clear in-request caches (e.g. after tests or option updates).filter_registration_errors()Block banned material in a new username at registration.filter_rest_pre_insert_group()Block banned words in group titles via REST.filter_rest_pre_insert_team()Block banned words in team titles via REST.filter_rest_pre_insert_user()REST user create/update: validate login, slug, and display-related fields (array or object payloads).is_enabled()Whether the word filter is enabled (General → Moderation).mask_html_content()Mask banned words only outside HTML tags.mask_plain_text()Mask banned words in plain text (no HTML).maybe_register_group_rest_filter()Late-register group REST filter when Social Kit registers the CPT after priority 0.register_hooks()Register WordPress hooks (idempotent).validate_strict_text()Reject value if any banned whole-token (or phrase) matches.
Defined in inc/class-wordban.php