Browse: Home / Functions /

learndash_activity_complete_topic

learndash_activity_complete_topic( int $user_id,  int $course_id,  int $topic_id,  int $completetime )

Set the topic activity completed record.


Description #


Parameters #

$user_id

(int) (Required) User ID.

$course_id

(int) (Required) Course ID.

$topic_id

(int) (Required) Topic ID.

$completetime

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


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.