Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
_llms_template_view_order_get_transactions( LLMS_order $order, integer $per_page = 20, null|integer $page = null )
Loads transactions for the given order.
Parameters Parameters
- $order
-
(LLMS_order) (Required) Order object.
- $per_page
-
(integer) (Optional) Transactions to display per page.
Default value: 20
- $page
-
(null|integer) (Optional) Results page.
Default value: null
Return Return
(array) Results from LLMS_Order::get_transactions().
Source Source
File: includes/functions/llms-functions-template-view-order.php
function _llms_template_view_order_get_transactions( $order, $per_page = 20, $page = null ) { $page = is_null( $page ) ? absint( llms_filter_input( INPUT_GET, 'txnpage', FILTER_SANITIZE_NUMBER_INT ) ) : $page; return $order->get_transactions( array( /** * Filters the number of transactions displayed on each page when viewing order details. * * @since Unknown * * @param integer $per_page Number of orders per page. Default: `20`. */ 'per_page' => apply_filters( 'llms_student_dashboard_transactions_per_page', $per_page ), 'paged' => $page ? $page : 1, ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |