radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Additional WordPress validation rules #165

Open BenRutlandWeb opened 3 years ago

BenRutlandWeb commented 3 years ago

Is your feature request related to a problem? Please describe. There are many WordPress specific reasons to validate user input, it would be nice to have some more validation rules in the framework core.

Describe the solution you'd like Among other rules the following would be a nice addition:

Describe alternatives you've considered I can create custom rules but this is repetitive for multiple projects.

Additional context There are probably more useful rules, and perhaps the Exists and Unique rules can be made reusable instead of strictly for the email/username

BenRutlandWeb commented 3 years ago

IsFile and IsImage would also be good validation rules to implement. Perhaps reliant on #167