Skip to content

Instantly share code, notes, and snippets.

@jessuppi
Last active July 24, 2025 18:19
Show Gist options
  • Save jessuppi/d8da77a96757c57c861da89104277663 to your computer and use it in GitHub Desktop.
Save jessuppi/d8da77a96757c57c861da89104277663 to your computer and use it in GitHub Desktop.
#!/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