Importing books with “draft” status instead of “publish”
-
I’ve written my own MBT importer, which was fairly easy to do given your “mbt_importers” and “mbt_pre_import_book” filters. Nice architecture.
However, the base function that creates an mbt_book post hard-codes the post_status field as “publish.” I would like to preview, tweak, and/or approve the posts I bring in through my import process, so it would be very cool if you could allow me to specify the post_status in the book objects my importer generates. The changes to mbt_import_book would be fairly trivial and shouldn’t affect your other importers if your $defaults array included a “publish” post status and your wp_insert_post call pulled post_status from the $book array.
The cool thing about this change would be that you (and I) could add a radio button or check box to the import form that would let users choose to import posts as drafts or published posts. I think some would appreciate that option.
- The topic ‘Importing books with “draft” status instead of “publish”’ is closed to new replies.