Skip to content

Instantly share code, notes, and snippets.

@MilenFrom
MilenFrom / WP-CLI Default Site Settings
Created January 9, 2024 11:53 — forked from adamslowe/WP-CLI Default Site Settings
WP-CLI Default Site Settings
# WP Config Settings
wp config set AUTOMATIC_UPDATER_DISABLED true
wp config set CORE_UPGRADE_SKIP_NEW_BUNDLED true
# Changing Site URL to https
wp option get siteurl | sed "s/http:/https:/g" | xargs -I {} wp option update siteurl {}
wp option get home | sed "s/http:/https:/g" | xargs -I {} wp option update home {}
# Install themes & plugins