Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Sessions::__construct()
Private Constructor.
Return Return
(void)
Source Source
File: includes/class-llms-sessions.php
private function __construct() { add_filter( 'cron_schedules', array( $this, 'add_cron_schedule' ) ); if ( ! wp_next_scheduled( 'llms_end_idle_sessions' ) ) { /** * Filter the recurrence interval at which LifterLMS closes idle sessions. * * @link https://developer.wordpress.org/reference/functions/wp_get_schedules/ * * @since 3.37.2 * * @param string $recurrence Cron job recurrence interval. Must be valid interval as retrieved from `wp_get_schedules()`. Default is "every_five_mins". */ $recurrence = apply_filters( 'llms_sessions_end_idle_cron_recurrence', 'every_five_mins' ); wp_schedule_event( time(), $recurrence, 'llms_end_idle_sessions' ); } add_action( 'llms_end_idle_sessions', array( $this, 'end_idle_sessions' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.2 | Add filter to the cleanup cronjob interval. |
3.36.0 | Introduced. |