learndash_get_assignment_points_awarded( int $assignment_id )
Gets the value of the awarded assignment points.
If the assignment hasn’t been approved or graded, the translatable string ‘Pending’ is returned. Otherwise, the awarded points and percentage achieved are returned.
(int) (Required) ID of the assignment.
(string) Returns points awarded.