Cron job Generator

Home » WordPress Generators » Cron job Generator
The name of the function that will be called.
The text domain of the plugin.
Use Local Time
Use local time instead of GMT.
The recurrence of the cron job.
Name of this custom recurrence of the cron job.
Label of this custom recurrence of the cron job.
Interval of this custom recurrence of the cron job in seconds.
The name of the function that will be called.
The name of the hook that will be called.
Comma-seperated list of arguments for the hook.
                    function wpturbo_my_custom_cron_job(){
	// Your code here.
	// Do something when this function runs...
}
add_action( 'my_custom_cron_job', 'wpturbo_my_custom_cron_job');

function wpturbo_my_custom_cron_job(){
	if ( ! wp_next_scheduled( 'my_custom_cron_job' ) ) {
		wp_schedule_event(time(), 'hourly', 'my_custom_cron_job');
	}
}
add_action( 'wp', 'wpturbo_my_custom_cron_job' );