Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a task which perform in the scheduled event. See
* Task to perform
* @todo Change the `prefix_` and with your own unique prefix.
* @since 1.0.0
* @return void
if( ! function_exists( 'prefix_cron_task' ) ) :
function prefix_cron_task() {
error_log( 'Called' );
add_action( 'prefix_cron_hook', 'prefix_cron_task' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment