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


Top ↑

Return Return

(array) Results from LLMS_Order::get_transactions().


Top ↑

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,
		)
	);

}


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.