Filter
rpress_live_orders_max_cards
On this page
Filters the maximum number of order cards loaded onto the Live Orders board.
Sets posts_per_page for the queries that populate the board. The default is 500 and the value is cast to an integer. Raise or lower it to balance completeness against page weight.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$max | int | Default maximum number of orders. |
Return value#
int. Maximum number of orders per query.
Example#
function my_live_orders_max_cards( $max ) {
return 200;
}
add_filter( 'rpress_live_orders_max_cards', 'my_live_orders_max_cards' );
Notes#
Applied to two queries in RP_Live_Orders::get_orders(): orders with a service date of today or yesterday, and today's orders that have no service date.
Source#
Applied in:
includes/admin/payments/class-live-orders.php(line 154), inRP_Live_Orders::get_orders()includes/admin/payments/class-live-orders.php(line 184), inRP_Live_Orders::get_orders()
See also#
Was this page helpful?
