Created
September 30, 2019 08:08
-
-
Save fumikito/db98ef7111111ebef20b9b640570159e to your computer and use it in GitHub Desktop.
Import theme unit test data from WP-CLI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Activate WP Importer plugin. | |
wp plugin install wordpress-importer --activate | |
# Don't know why, but failed importing directly. | |
wget https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.xml | |
# Import | |
wp import themeunittestdata.wordpress.xml --authors=create |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment