Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

1

// Custom Cron Recurrences
function custom_cron_job_recurrence( $schedules ) {
	$schedules[''] = array(
		'display' => __( '', 'textdomain' ),
		'interval' => ,
	);
	return $schedules;
}
add_filter( 'cron_schedules', 'custom_cron_job_recurrence' );

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