save_post and revisions (1 post)

  1. elfin

    Posted 7 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic