I have an editor instance where I want to update another table on edit.
All was working ok, until I added validation to some of my editor fields.
If everything validates ok, no problem, but the $_POST['action'] === 'edit' block of code will run regardless of whether my editor validates, throwing an error
How can I check to see if the editor input validates before running the edit block ?