Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/bestwebsite-legacy/wp-deploy-hook-runner/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WP Deploy Hook Runner
Secure webhook + WP‑CLI endpoint to run post‑deploy maintenance tasks from CI/CD.
What it Does
- Flush rewrite rules
- Flush object cache (if available)
- Delete expired transients (and allows full transient purge via filter)
Installation
- Upload
wp-deploy-hook-runnerto/wp-content/plugins/ - Activate via Plugins screen
- Go to Tools → Deploy Hook Runner to view your endpoint + token
Webhook Usage
Endpoint: POST /wp-json/deploy/v1/run
Authenticate with either:
- Header:
X-Deploy-Token: <your-token> - Query param:
?token=<your-token>
cURL
curl -X POST -H "X-Deploy-Token: YOUR_TOKEN" https://example.com/wp-json/deploy/v1/run
GitHub Actions Example
- name: WordPress post-deploy
run: |
curl -X POST -H "X-Deploy-Token: ${{ secrets.DEPLOY_TOKEN }}" https://example.com/wp-json/deploy/v1/run
WP‑CLI
wp deploy-hook run
wp deploy-hook token
wp deploy-hook token --regenerate
Extensibility
- Filter
wdhr_clear_all_transientstotrueto purge all transients. - Action
wdhr_after_tasksreceives the$reportarray after execution.
Security
- Uses a random 32‑character token stored in the database.
- Accepts token via header or query param (for CI flexibility).
Author
Built and maintained by Best Website — https://bestwebsite.com
Contact: support@bestwebsite.com
License
GPL‑2.0 or later
Releases
1 release.
Tag
Published
v1.0.0
latest
Oct 21, 2025 1 year ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.