pressbooks/pressbooks — pull request #69 by drlippman (2014-08-16 18:49:45+00:00)
Title: Add import metabox hooks

Sometimes, like with licensing or attribution, it would be handy to be able to specify custom postmeta fields on an import, to apply to all imported posts, rather than having to edit each post and set the postmeta.

This change adds a new stand-in "post type", pb_import, which plugin writers can hook their add_meta_boxes against if they want their meta fields to display on the import page.

Plugin writers may need to adjust their post save functions to handle post_type not being part of the $_POST variables during import.