learndash_get_user_activity

learndash_get_user_activity( array $args = array() )

Gets the user activity.


Description #


Parameters #

$args

(array) (Optional) An array of user activity arguments.

  • 'Optional.'
    (int) $course_id Course ID. Default 0.
  • 'activity_type'
    (string) Type of the activity.

Default value: array()


Return #

(object) Activity object.


Source #

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