Force a Post to Draft on Save

Force a post to draft if specific meta is invalid (or other reason), in this case the start and end date/time.

Source: https://gist.github.com/joshuadavidnelson/8f8cdfe38d1aff53d5dd

Tags: , ,