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 before_save_post

dylanv2021 5 months 2021-07-01T05:55:32-05:00 0 Answers 0 views 0

Leave an answer