Browse: Home / Functions /

learndash_report_clear_post_activity_by_types

learndash_report_clear_post_activity_by_types( int $post_id,  array $activity_types = '' )

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


Description #


Parameters #

$post_id

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

$activity_types

(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 #

Changelog
Version Description
2.5.0 Introduced.