Skip to content
Corex

Rule

Corex\Forms\Validation\Rule · interface · Forms layer

A single, stateless validation rule. Pure: it returns an i18n message key on failure (e.g. email, max) or null on pass, and never touches WordPress.

validate(mixed $value, array $params, array $allValues): ?string

Section titled “validate(mixed $value, array $params, array $allValues): ?string”