Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save peterjohnhunt/f13f3e07abaa98c1fb2310527b5e49a5 to your computer and use it in GitHub Desktop.

Select an option

Save peterjohnhunt/f13f3e07abaa98c1fb2310527b5e49a5 to your computer and use it in GitHub Desktop.
# Optional Local Debug
# wp config set WP_DEBUG true --raw
# wp config set WP_DEBUG_DISPLAY false --raw
# wp config set WP_DEBUG_LOG true --raw
# Setup defaults
wp post create --post_type=page --post_title=Home --post_status=publish --post_author=1
wp option update show_on_front 'page'
wp option update page_on_front $(wp post list --post_type=page --post_status=publish --posts_per_page=1 --pagename=home --field=ID --format=ids)
wp option update blogdescription ''
wp option update start_of_week 0
wp option update blog_public 0
wp option update timezone_string 'America/Chicago'
wp option update permalink_structure '/%postname%'
# Remove unneeded files
rm readme.html license.txt wp-config-sample.php;
wp post delete 1 2 --force
wp plugin delete akismet hello
wp theme delete twentysixteen twentyseventeen twentynineteen twentytwenty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment