LLMS_Sessions::add_cron_schedule( array $schedules )

Add cron schedule for session end interval checks.


Parameters Parameters

$schedules

(array) (Required) Array of cron schedules.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/class-llms-sessions.php

	public function add_cron_schedule( $schedules ) {

		// Adds every 5 minutes to the existing schedules.
		$schedules['every_five_mins'] = array(
			'interval' => MINUTE_IN_SECONDS * 5,
			'display'  => sprintf( __( 'Every %d Minutes', 'lifterlms' ), 5 ),
		);
		return $schedules;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.36.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.