How can I display an error message after post has been saved?
As mentioned by jdm2112, WordPress provides a save_post hook that fires once a post is saved. Since you need to run validation logic when posts are saved, this hook (or its dynamic counterpart) should probably be used in your solution. As for displaying an error message when validation fails, the admin_notices hook is perfect for … Read more