Last active
July 24, 2025 18:19
-
-
Save jessuppi/d8da77a96757c57c861da89104277663 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## this script resets Git Updater cache and clears update transients | |
## useful when themes or plugins aren’t detecting available updates | |
## delete internal metadata cache | |
wp option delete git_updater | |
## delete all transients including theme/plugin update checks | |
wp transient delete --all | |
## for narrower targeting use this instead (optional) | |
# wp transient delete --site update_themes | |
# wp transient delete --site update_plugins | |
## trigger a fresh check for all repos | |
wp eval 'do_action( "git_updater_update" );' | |
## show any available theme and plugin updates | |
wp theme list --update=available | |
wp plugin list --update=available |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment