Adds a "Change WP Version" tool to a site's Site Info panel in Local, letting you switch the WordPress core version — including RC/beta releases — without leaving the app.
- Lists the latest stable release of every WordPress minor branch (e.g. 6.7.7, 6.6.7, ...), pulled live from wp.org.
- Optional toggle to also show unofficial RC/beta versions from wp.org's beta update channel.
- Detects and displays the site's current WordPress version (the site must be running).
- Forces the reinstall via WP-CLI (
wp core update --version=<x> --force), so downgrades work too, not just upgrades. - Success/error modals, and other Local panels (e.g. Overview) refresh automatically after a change.
There are two ways to install the add-on: downloading a ready-to-use build (no dev tools required), or building it yourself from source.
- Download
change-wp-version.zipfrom the latest release. - Unzip it — you get a
change-wp-versionfolder, already built, with no extra steps needed. - Move that folder into Local's
addonsdirectory (see step 1 below to locate it). - Restart Local, then follow step 5 to enable it.
To get a newer version later, just repeat these steps with the newest release.
Requires Node.js and Yarn installed.
Local only loads add-ons that live directly inside its addons directory, so this repo needs to be cloned somewhere else first, then linked (or copied) into that directory.
- macOS:
~/Library/Application Support/Local/addons - Windows:
C:\Users\<username>\AppData\Roaming\Local\addons - Linux:
~/.config/Local/addons
Replace Local with Local Beta in the path above if you're running Local Beta.
git clone https://github.com/Honemo/Local-change-wp-version.gitThis creates a Local-change-wp-version folder — the repo root itself is the add-on, so that whole folder is what needs to end up (under the name change-wp-version) in Local's addons directory.
A symlink is recommended so git pull updates are picked up without re-copying anything:
# macOS / Linux
ln -s /path/to/Local-change-wp-version "~/.config/Local/addons/change-wp-version"# Windows (run as administrator)
New-Item -ItemType SymbolicLink -Path "$env:APPDATA\Local\addons\change-wp-version" -Target "C:\path\to\Local-change-wp-version"(You can copy the folder instead of symlinking it, but you'll then need to re-copy it after every update.)
cd /path/to/Local-change-wp-version
yarn install
yarn buildRestart Local (or open it if it wasn't running), go to the add-ons panel, and enable Change WP Version. It then appears as a tab in each site's Site Info panel.
cd /path/to/Local-change-wp-version
git pull
yarn install
yarn buildThen restart Local to pick up the changes.
-
@getflywheel/local provides type definitions for Local's Add-on API.
- Node Module: https://www.npmjs.com/package/@getflywheel/local-components
- GitHub Repo: https://github.com/getflywheel/local-components
-
@getflywheel/local-components provides reusable React components to use in your Local add-on.
- Node Module: https://www.npmjs.com/package/@getflywheel/local
- GitHub Repo: https://github.com/getflywheel/local-addon-api
- Style Guide: https://getflywheel.github.io/local-components
All files in /src will be transpiled to /lib using TypeScript. Anything in /lib will be overwritten.
If you are looking for help getting started, you can consult the documentation for the add-on generator.
You can consult the Local add-on API, which provides a wide range of values and functions for developing your add-on.
MIT