Plugin Development: WordPress processes twice on post update. How to skip process on the first?
@Steve Functions hook to save_post are always called twice, WordPress call functions hooked to save_post twice because: first time it saves the post revision. second time it saves the actual post. NOTE: If you have disabled post revisions using define(‘WP_POST_REVISIONS’, false); then the save_post hook will be fired only once when the actual post will … Read more