[wp-hackers] save_post action done twice

Andrew Nacin wp at andrewnacin.com
Sat Oct 23 14:51:20 UTC 2010


On Fri, Oct 22, 2010 at 11:41 PM, John Blackbourn
<johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
> wrote:

> Two handy functions for this scenario:
>
> wp_is_post_revision( $post_id ) and wp_is_post_autosave( $post_id ).


I think save_post also gets triggered when we create an auto-draft while
loading up post-new.php.


More information about the wp-hackers mailing list