learndash_approve_assignment

learndash_approve_assignment( int $user_id,  int $lesson_id,  int $assignment_post_id )

Marks assignment approved by user ID annd 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 #

(boolean) Returns true if the assignment is approved otherwise false.


Source #

File: includes/ld-assignment-uploads.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.