LLMS_Student_Dashboard::output_orders_content()

Endpoint to output orders content


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.student.dashboard.php

	public static function output_orders_content() {

		global $wp;

		$args = array();

		if ( ! empty( $wp->query_vars['orders'] ) ) {

			$order = llms_get_post( $wp->query_vars['orders'] );
			llms_template_view_order( $order );

		} else {

			$student = new LLMS_Student();
			llms_get_template(
				'myaccount/my-orders.php',
				array(
					'orders' => $student->get_orders(
						array(
							'page' => isset( $_GET['opage'] ) ? intval( $_GET['opage'] ) : 1,
						)
					),
				)
			);

		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Use llms_template_view_order() in favor of including the template file directly.
3.8.0 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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