Skip to content

Instantly share code, notes, and snippets.

@rambuvn
Created September 27, 2012 04:22
Show Gist options
  • Save rambuvn/3792134 to your computer and use it in GitHub Desktop.
Save rambuvn/3792134 to your computer and use it in GitHub Desktop.
Check auto save for wordpress save_post action
// check autosave
if ( (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) || ( defined('DOING_AJAX') && DOING_AJAX) || isset($_REQUEST['bulk_edit']) ) return $post_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment