learndash_approve_assignment( int $user_id, int $lesson_id, int $assignment_post_id )
Marks assignment approved by user ID and lesson ID.
Description #
Parameters #
- $user_id
-
(int) (Required) User ID.
- $lesson_id
-
(int) (Required) Lesson ID.
- $assignment_post_id
-
(int) (Optional) Assignment post ID. Default 0.
Return #
(bool) Returns true if the assignment is approved, otherwise false.
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |