WordPress.org

Ready to get started?Download WordPress

Forums

How to Create a Button that Updates the Post Without Creating a Revision (1 post)

  1. fohryan
    Member
    Posted 1 year ago #

    Hi guys,

    I'm attempting to create a new button in the backend that allows me to update my posts without creating a revision. For instance, if I fix a spelling error in a post, that isn't a completely revised document, its a spelling correction. I'd like to have manual control over when revisions are created.

    It seems as if this will be the way to go:
    remove_action('pre_post_update', 'wp_save_post_revision');

    But I'm having trouble tying that to a specific button.. I don't want to disable revisions completely, just momentarily when this button is pressed.

    Thanks for your input!

Topic Closed

This topic has been closed to new replies.

About this Topic