wp-cli / db-command

Performs basic database operations using credentials stored in wp-config.php.
MIT License
71 stars 58 forks source link

Invalid Post Type error in wp import #147

Closed Ash0ur closed 5 years ago

Ash0ur commented 5 years ago

I receive "Failed to import ... Invalid post type " error when trying to import xml file if the register_post_type() is in a plugin ( the plugin is active and the Post type menu exists in the dashboard menu )

The command is wp import file.xml --authors=create