llms_template_view_order_transactions( LLMS_Order $order, array $transactions = null, integer $per_page = 20, integer $page = null )

Loads the single order view transactions table on the student dashboard.


Parameters Parameters

$order

(LLMS_Order) (Required) The order to display.

$transactions

(array) (Optional) Result array from LLMS_Order::get_transactions(). If null, will load transactions from the order.

Default value: null

$per_page

(integer) (Optional) Number of results to display per page. Only used if $transactions is null.

Default value: 20

$page

(integer) (Optional) Current results page to display. Only used if $transactions is null.

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/functions/llms-functions-template-view-order.php

	function llms_template_view_order_transactions( $order, $transactions = null, $per_page = 20, $page = null ) {

		if ( is_null( $transactions ) ) {
			$transactions = _llms_template_view_order_get_transactions( $order, $per_page, $page );
		}

		if ( empty( $transactions['transactions'] ) ) {
			return;
		}

		llms_get_template( 'myaccount/view-order-transactions.php', compact( 'transactions' ) );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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