Browse: Home / Functions /


learndash_report_clear_user_activity_by_types( int $user_id,  array $activity_types = '' )

Clears user activity by user id and activity type for the report.

Description #

Parameters #


(int) (Optional) The ID of the user to delete activity. Default 0.


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

Default value: ''

Source #

File: includes/ld-reports.php

Changelog #

Version Description
2.5.0 Introduced.