Filter
rpress_live_orders_window_hours
On this page
Filters the rolling window in hours used by the Live Orders view.
Returns the number of hours (default 12) cast to an integer by RP_Live_Orders::get_window_hours().
Available since RestroPress 3.3.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$hours | int | Default window in hours. |
Return value#
int. Window length in hours.
Example#
function my_live_orders_window( $hours ) {
return 24;
}
add_filter( 'rpress_live_orders_window_hours', 'my_live_orders_window' );
Notes#
In this version nothing calls get_window_hours(), so changing the value has no visible effect; the board is scoped by service date instead.
Source#
Applied in:
includes/admin/payments/class-live-orders.php(line 90), inRP_Live_Orders::get_window_hours()
See also#
Was this page helpful?
