Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

test

test

// Schedule Cron Job Event
function custom_cron_job() {
	if ( ! wp_next_scheduled( '' ) ) {
		wp_schedule_event( current_time( 'timestamp' ), 'hourly', '' );
	}
}
add_action( 'wp', 'custom_cron_job' );