Created
March 11, 2026 22:06
-
-
Save lukecav/76e16b7c18a6f6c17bd6dfd30f018d2a to your computer and use it in GitHub Desktop.
Delete all specific prefix based cron events via WP-CLI
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
| wp cron event list --fields=hook --format=csv \ | |
| | tail -n +2 \ | |
| | grep -E '^(stellarwp|nexcess)' \ | |
| | sort -u \ | |
| | while IFS= read -r hook; do | |
| wp cron event delete "$hook" | |
| done |
Comments are disabled for this gist.