LLMS_Privacy::get_student_orders( LLMS_Student $student, int $page )

Retrieve student orders


Parameters Parameters

$student

(LLMS_Student) (Required) Student object.

$page

(int) (Required) Page number.


Top ↑

Return Return

(array)


Top ↑

Source Source

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

	protected static function get_student_orders( $student, $page ) {

		$done    = true;
		$results = array();

		$orders = $student->get_orders(
			array(
				'count' => 250,
				'page'  => $page,
			)
		);
		if ( $orders && $orders['pages'] ) {
			$results = $orders['orders'];
			$done    = ( absint( $page ) === absint( $orders['pages'] ) );
		}

		return array(
			'done'   => $done,
			'orders' => $results,
		);

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.18.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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