• In my plugin I have added custom fields to post and page edit. I am storing some data in a table, not postmeta. I do this by adding an action to save_post.
    add_action(‘save_post’, ‘eshop_save_postdata’);

    If I want to stop data being stored for post revisions what is the best method to accomplish this?
    What impact would there be if I used:
    remove_action( ‘pre_post_update’, ‘wp_save_post_revision’ );

    and where would be the best place to use that so it didn’t interfere elsewhere?

  • The topic ‘save_post and revisions’ is closed to new replies.