Learndash_Admin_Assignments_Listing::get_advanced_courses_group_leader_assignment_ids()
Collect all assignment IDs visible to a Group Leader with advanced course access only.
Description #
Combines two sources with OR logic (not natively supported by WP_Query):
- Assignments submitted to courses the GL created (post_author) or manages via groups.
- Assignments submitted by users within the GL’s groups.
Uses StellarWP DB to avoid multiple unbounded get_posts() calls.
Return #
(array<int,) int> Assignment post IDs.
Source #
File: sfwd-lms/includes/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php
Changelog #
| Version | Description |
|---|---|
| 5.0.5 | Introduced. |