Browse: Home / Functions /

learndash_report_get_activity_by_user_id

learndash_report_get_activity_by_user_id( int $user_id,  array|string $activity_types = '' )

Gets the list of activities by user ID for the report.


Description #


Parameters #

$user_id

(int) (Optional) The ID of the user to get activities. Default 0.

$activity_types

(array|string) (Optional) The type of the activity to delete. Any combination of the following: 'access', 'course', 'lesson', 'topic', 'quiz'.

Default value: ''


Return #

(array|void) Returns an array of activity IDs.


Source #

File: includes/ld-reports.php


Changelog #

Changelog
Version Description
2.5.0 Introduced.