I’m wondering if it’s possible to set fields as required only once the post status is set.
I would like my users to be able to save their posts without any constraints (posts are automatically saved as draft).
Then, once the posts saved, users will have to enter required fields in order to publish or notify admins.
Any tip?
There isn’t any way to know what the post status is (if it has been change) during the validation request because the value of that WP setting is not passed during the validation request.
It might be possible to do this using the this filter but I do not know the details on how that would be done https://www.advancedcustomfields.com/resources/javascript-api/#filters-validation_complete