scaffold-command icon indicating copy to clipboard operation
scaffold-command copied to clipboard

Scaffold a WP-Cron event and its callback

Open johnbillion opened this issue 6 years ago • 1 comments

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.

johnbillion avatar Nov 22 '17 14:11 johnbillion

👍

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

danielbachhuber avatar Nov 22 '17 14:11 danielbachhuber