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
isnull
.Default value: 20
- $page
-
(integer) (Optional) Current results page to display. Only used if
$transactions
isnull
.Default value: null
Return Return
(void)
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' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |