LLMS_Sessions::get_current( int $user_id = null )

Retrieve the current session start event record for a given 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

(LLMS_Event|false)


Top ↑

Source Source

File: includes/class-llms-sessions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.5.0 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.