Skip to content
Docs
Get RestroPress

Filter

rpress_account_orders_per_page

Updated
On this page

Filters the number of orders shown per page in the customer order list.

Sets the size of the first page and of each "Load more" request in the account Orders section and the [rpress_order_history] list. Values below 1 are raised to 1.

Available since RestroPress 3.5.1.

Parameters#

ParameterTypeDescription
$per_pageintOrders per page. Default 10.

Return value#

int. Orders per page.

Example#

add_filter( 'rpress_account_orders_per_page', 'my_orders_per_page', 10, 1 );
function my_orders_per_page( $per_page ) {
	return 20;
}

Source#

Applied in:

  • includes/features/account/orders.php (line 21), in rpress_account_orders_per_page()

See also#

Was this page helpful?