Browse: Home / Functions /

learndash_activity_start_course

learndash_activity_start_course( int $user_id,  int $course_id,  int $start_time,  bool $force_start_time = true )

Set the course activity started record.


Description #


Parameters #

$user_id

(int) (Required) User ID.

$course_id

(int) (Required) Course ID.

$start_time

(int) (Required) Activity start timestamp (GMT).

$force_start_time

(bool) (Optional) Force update on start time.

Default value: true


Return #

(object) Instance of LDLMS_Model_Activity or null;


Source #

File: includes/course/ld-activity-functions.php


Changelog #

Changelog
Version Description
3.5.0 Introduced.