Allow plugins to hook into autosave and include field data from the autosave with the package.
|Reported by:||nerrad||Owned by:|
Autosaves currently only save "blessed" data (post_title and post_description?). Plugin authors may want to add their own data in the autosave package so if they hook into save_post they can handle/save that data as needed.
How this works
Metaboxes are generated with an id already on the page. So what we do is add an extra parameter to the add_meta_box() function (do_autosave bool) so that when a plugin uses add_meta_box() they can set that flag.
Added a new jquery plugin (serializefullarray) as it will handle nested pseudo arrays set as the "name" values in inputs (i.e. somedata[one][two]) and create proper objects from them.
Change History (13)
comment:7 DrewAPicture — 9 months ago
- Component changed from Administration to Autosave
- Keywords dev-feedback added