Only save data for 'post' not 'revision' when using "add_action('save_post', .)" (1 post)

  1. David Gard
    Posted 6 years ago #

    Hey all,

    I am pretty new to writing plugins and this is the first that I have done that uses a table. I'm pretty much were I want to be but can't get my head around how WP is saving the data (twice, first for the revision and then for the post). Ideally I'd like only to save this data for the post, so does any body know of a way to pick up if the save is for the revision so that I can ignore it?


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.