[wp-hackers] save_post action done twice

Ken (WraithKenny) ken.adcstudio at gmail.com
Mon Nov 1 19:49:09 UTC 2010


Seems fairly complicated, and a quite common issue among plugin developers.
Perhaps a thorough tutorial should be included in the Plugin Dev Handbook
;-)

On Sat, Oct 23, 2010 at 10:51 AM, Andrew Nacin <wp at andrewnacin.com> wrote:

> On Fri, Oct 22, 2010 at 11:41 PM, John Blackbourn
> <johnbillion+wp at gmail.com <johnbillion%2Bwp at gmail.com><
> johnbillion%2Bwp at gmail.com <johnbillion%252Bwp 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.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list