LLMS_Privacy::get_student_certificates( LLMS_Student $student )

Retrieve student certificates.


Parameters Parameters

$student

(LLMS_Student) (Required) Student object.


Top ↑

Return Return

(LLMS_User_Certificate[])


Top ↑

Source Source

File: includes/privacy/class-llms-privacy.php

	protected static function get_student_certificates( $student ) {

		$query = $student->get_certificates( array( 'sort' => array( 'date' => 'DESC' ) ) );

		return $query->get_awards();
	}

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Updated the use of LLMS_Student::get_certificates() with its new behavior.
3.18.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.