• Hi,

    When publishing a post (or saving a draft) I run a hook on ‘save_post’ to add a meta.

    I want to prevent the actual post from being saved if any errors occur when running save_post. I’ve noticed there are other hooks I can use, like ‘pre_post_update’ but I wouldn’t know how to prevent a post from being saved.

    How can I accomplish this?

  • The topic ‘Prevent saving post on publishing’ is closed to new replies.