scaffold-command
scaffold-command copied to clipboard
Scaffold a WP-Cron event and its callback
A colleague of mine has been struggling with the format for scheduling a WP-Cron event and correctly passing parameters to its callback function. A WP-CLI command to scaffold an event and its callback function with example parameters would be great.
I'm going to put together an example and open a PR.
👍
Related https://github.com/wp-cli/scaffold-command/issues/88 and https://github.com/wp-cli/ideas/issues/57
It'd be ideal to have some standard format for generating this code and placing into a plugin/theme