[wp-hackers] Handling Custom Meta Boxes
scribu at gmail.com
Mon Dec 14 22:04:26 UTC 2009
Besides DOING_AUTOSAVE, also check for DOING_AJAX and DOING_CRON.
On Mon, Dec 14, 2009 at 11:59 PM, Michael Pretty <mpretty at voceconnect.com>wrote:
> I'm curious how most plugin developers handle saving settings from custom
> post meta_boxes. I've always handled this by adding an action to save the
> result on 'save_post' and only updating if DOING_AUTOSAVE wasn't defined.
> The problem with doing this, is that the save_post action is also called
> when a scheduled item is moved to published. If this happens, the posted
> values from the meta_box isn't available and I can't alway use isset since
> that means I can never use checkboxes for input.
> Thank you.
> -Michael (prettyboymp)
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers