LLMS_Sessions::start( int $user_id = null )

Start a new session for the current user.


Description Description


Parameters Parameters

$user_id

(Optional) WP_User ID of a student. Default null If not provided, or a falsy is provided, will fall back on the current user id.

Default value: null


Top ↑

Return Return

(false|LLMS_Event|WP_Error)


Top ↑

Source Source

File: includes/class-llms-sessions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.5.0 Create open session entry in the wp_lifterlms_events_open_sessions table. Added optional $user_id parameter.
3.36.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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