Documentation

Form Hooks & Filters

Form Field Validation Filter

The breakdance_form_validate_field filter allows developers to validate individual form fields using custom PHP logic before form actions are processed.

If validation fails, an error message can be returned to the user and all remaining form actions will be skipped.

This is useful when implementing custom validation rules that are not covered by the built-in form field options.

Updated on: June 9, 2026

Get Oxygen

Oxygen is the best way to visually design WordPress websites.
If you can build it with WordPress, you can design it with Oxygen.
  • Lifetime Access
  • Oxygen Classic + New Oxygen
  • All Premium Add-Ons
  • 60-Day Money Back Guarantee
Start Designing