learndash_report_get_activity_by_post_id( int $post_id, array|strings $activity_types = '' )

Gets the list of activities by post id for the report.


Description Description


Parameters Parameters

$post_id

(Optional) The ID of the post to get activites. Default 0.

$activity_types

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

Default value: ''


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/ld-reports.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.