• Resolved James Byrd

    (@james-byrd)


    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.

Viewing 1 replies (of 1 total)
  • Plugin Author zookatron

    (@zookatron)

    Hi @james-byrd,

    You’re right, this would be an easy improvement to make, thanks for the suggestion. We’ll plan on including it in the next update to MyBookTable.

    ~Tim

Viewing 1 replies (of 1 total)
  • The topic ‘Importing books with “draft” status instead of “publish”’ is closed to new replies.