Hello,
Thanks for the feedback!
There are multiple reasons for this beahvior. The fields required to create a user in the WP logic are the email, login, password etc… Since those fileds can be set programatically in PHP outside of the form itself, in a hook for example, and are not mandatory in the Form UI, a validation would always return an error.
Validation also means that there will a message displayed on screen, which means developers will want customize it (adding new settings for all kind of cases: email exists, login exists etc…), with additional multilingual support on top of that. The logic is the same for Post Create action, Term Create action etc… which don’t have builtin validation.
I’m working on a solution which would fit everyone needs (developers and UI users), in all actions for a future patch.
Note that you can validate your fields using the validation hooks such as acfe/form/validation/user (see documentation), coupled with the native email_exists() function, if you have an email field for example (see documentation).
Hope it helps!
Have a nice day!
Regards.
Thread Starter
Anonymous User 13711045
(@anonymized-13711045)
Yeah, I was able to validate it using the hook as it’s easy to do. Might want to put a disclaimer up or something so people realize this as I assumed it was built in.
Hello,
Good idea. I added a note in the documentation.
Have a nice day!
Regards.