Skip to content

Instantly share code, notes, and snippets.

@douglas-johnson
Last active August 13, 2021 14:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglas-johnson/22415298580ace47c681872fbed2a486 to your computer and use it in GitHub Desktop.
Save douglas-johnson/22415298580ace47c681872fbed2a486 to your computer and use it in GitHub Desktop.
# Install and activate typical plugins.
plugins:
wp plugin delete hello akismet; \
wp plugin install debug-bar disable-emojis jetpack query-monitor woocommerce --activate; \
# Install, copy and clean up drop-ins.
cache-plugins:
wp plugin install batcache memcached-redux; \
cp wp-content/plugins/batcache/advanced-cache.php wp-content/advanced-cache.php; \
cp wp-content/plugins/memcached-redux/object-cache.php wp-content/object-cache.php; \
wp plugin delete batcache memcached-redux; \
# Install and activate theme testing plugins.
theme-plugins:
wp plugin install theme-check theme-sniffer rtl-tester --activate; \
# Import theme test content provided by WordPress theme review team.
# https://github.com/WPTRT/theme-unit-test
theme-content:
wp plugin install wordpress-importer --activate;
curl -O https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.xml; \
wp import themeunittestdata.wordpress.xml --authors=create --skip=image_resize; \
rm themeunittestdata.wordpress.xml; \
# Import sampel products provided by Woocommerce.
# https://github.com/woocommerce/woocommerce
theme-products:
wp plugin install wordpress-importer --activate; \
curl -O https://raw.githubusercontent.com/woocommerce/woocommerce/master/sample-data/sample_products.xml; \
wp import sample_products.xml --authors=create --skip=image_resize; \
rm sample_products.xml; \
# Add example theme using Underscores with Woocommerce support.
theme-example:
wp scaffold _s example --theme_name="Example" --woocommerce; \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment