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
Return Return
(false|LLMS_Event|WP_Error)
Source Source
File: includes/class-llms-sessions.php
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. |