Last active
February 22, 2023 14:08
-
-
Save thetwopct/1f49a87ef6660c1cbda8a2c8c41257cf to your computer and use it in GitHub Desktop.
Import Theme Unit Test Data in to WordPress
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