Before saving post hook – WordPress Development Stack Exchange
I can’t seem to find a solution for this. I have found the
save_post hook but this fires after the post is saved to the database.
I have an
appointments custom post type and what I want to do is validated some stuff before the post is created, other wise if it fails the validation disregard creating the post.
Is there a hook similar to
save_post but instead of firing after creating post, it fires before creating the post. Maybe something like