Browse: Home / Functions /

learndash_assignment_list_approved

learndash_assignment_list_approved( array $assignment_ids,  int $step_id,  int $user_id )

Checks whether all assignments for specified step and user are approved.


Description #


Parameters #

$assignment_ids

(<span class="array">array) (Required) An array of assignment IDs.

$step_id

(int) (Required) The ID of the lesson or topic to get user assignments from.

$user_id

(int) (Optional) The user ID, gets current user if not specified.


Return #

(boolean) True if all user assignments for step are approved, otherwise false.


Source #

File: includes/ld-assignment-uploads.php


Changelog #

Changelog
Version Description
4.5.0 Introduced.