learndash_activity_complete_step( int $user_id, int $course_id, int $step_id, string $type = '', int $complete_time )
Set the step activity completed record.
Description #
Parameters #
- $user_id
-
(int) (Required) User ID.
- $course_id
-
(int) (Required) Course ID.
- $step_id
-
(int) (Required) Course step ID.
- $type
-
(string) (Optional) Step type 'course', lesson', 'topic', 'quiz.
Default value: ''
- $complete_time
-
(int) (Required) Activity complete timestamp (GMT).
Return #
(object) Instance of LDLMS_Model_Activity or null;
Source #
Changelog #
Version | Description |
---|---|
3.5.0 | Introduced. |