[wp-hackers] save_post action done twice

Scott Bressler sbressler at gmail.com
Fri Oct 22 10:28:38 UTC 2010


It seems that in hooking into the save_post action for saving the data in a
custom meta-box, my callback is being called twice when either saving a
draft post or updating a published post. If I instead hook into edit_post,
my callback is only called once.

Is this "double-calling" behavior with save_post expected? Should I be
hooking into edit_post instead?

Thanks,
Scott


More information about the wp-hackers mailing list