How to downgrade WordPress using WP CLI

WordPress updates are usually intended to add new features or fix security issues. However, sometimes it is necessary to revert to an older version, such as when compatibility issues with a particular plugin or theme arise, or when you want to make sure a particular version works.

In such cases, you can easily downgrade your WordPress version using the WP CLI. The specific command is as follows

wp core update --version=4.9.9 --force

The above command downgrades the WordPress version to 4. 9.9. The --force option also forces a reinstallation even if the version is already at the specified version.

It is strongly recommended that you make a backup before using this method. This is to prevent data loss in case of emergency.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top