No Trunk Updates self-updates
WordPress Plugin to disable updates for plugins using the local development version "trunk".
by Lukas Fritze · github.com/lukasfritzedev/wp-no-trunk-updates · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lukasfritzedev/wp-no-trunk-updates/archive/refs/heads/main.zipShips its own WordPress updater (built-in updater), so new versions show up under Dashboard → Updates.
No Trunk Updates is a small WordPress plugin for local development.
It prevents WordPress from offering updates for plugins that are currently on version trunk.
This helps avoid accidental upgrades of in-development plugins through the normal WordPress update flow.
What it does
- Removes plugin updates from being shown in the admin dashboard
- Prevents plugin updates when running WP-CLI commands like
wp plugin update --all
How it works
- Scans installed plugins and finds entries with version
trunk(case-insensitive). - Removes update information for those plugins from the plugin update transient.
- Leaves all non-
trunkplugins unchanged.
Installation
Option 1: Install from the WordPress plugin repository:
- In WordPress admin, go to Plugins > Add Plugin.
- Search for "No Trunk Updates".
- Click "Install Now", then activate the plugin.
Option 2: Use WP-CLI
- Run
wp plugin install --activate no-trunk-updates
Option 3: Install from ZIP:
- Download the latest release from releases.
- In WordPress admin, go to Plugins > Add Plugin > Upload Plugin.
- Choose the ZIP file, click "Install Now", then activate the plugin.
Verification with WP-CLI
Run:
wp plugin list
For any plugin whose version is trunk, update_version should be empty.