Skip to content
Docs
Get RestroPress

Filter

rpress_order_popup_query_limit

Updated
On this page

Filters the maximum number of orders the new-order popup query reads.

Sets posts_per_page for the query behind the popup. The newest matches are read first and then checked one by one for whether they need attention, so the limit applies before that check. The popup lists at most 20 of the matching orders and reports the total found.

Available since RestroPress 3.5.1.

Parameters#

ParameterTypeDescription
$limitintQuery limit. Default 200.

Return value#

int. Query limit.

Example#

add_filter( 'rpress_order_popup_query_limit', 'my_popup_query_limit', 10, 1 );
function my_popup_query_limit( $limit ) {
	return 400;
}

Source#

Applied in:

  • includes/features/order-alerts/popup.php (line 166), in RPRESS_Order_Popup::get_order_ids()

See also#

Was this page helpful?