Skip to content

Instantly share code, notes, and snippets.

@mPanasiewicz
Last active February 12, 2025 22:34
Show Gist options
  • Save mPanasiewicz/7a712a502bf8e6d98c327b8723958eb2 to your computer and use it in GitHub Desktop.
Save mPanasiewicz/7a712a502bf8e6d98c327b8723958eb2 to your computer and use it in GitHub Desktop.
# Delete the core updater lock option
wp option delete core_updater.lock
# Update WordPress to 6.7.2 forcefully
wp core update --version=6.7.2 --force
# Display the WordPress version
wp core version
# Checks for WordPress updates via Version Check API.
wp core check-update
# Update the WordPress database
wp core update-db
# Update multiple default themes from wordpress.org
wp theme update twentytwenty twentytwentyone twentytwentytwo twentytwentythree twentytwentyfour
# Delete older default themes
wp theme delete twentysixteen twentyseventeen twentynineteen
# Update all themes
wp theme update --all
# Install the new default theme
wp theme install twentytwentyone
# Deactivate Gutenberg plugin
wp plugin deactivate gutenberg
# Delete Gutenberg plugin
wp plugin delete gutenberg
# Delete Hello Dolly plugin
wp plugin delete hello-dolly
# Update Akismet to the latest version from wordpress.org
wp plugin update akismet
# Update all plugins from wordpress.org
wp plugin update --all
# Install the latest version of Blockeditor Fullscreen Mode Control from wordpress.org and activate
wp plugin install blockeditor-fullscreen-mode-control --activate
# Install the latest version of Disable Gutenberg from wordpress.org and activate
wp plugin install disable-gutenberg --activate