Filter
rpress_pause_orders_busy_until
On this page
Filters the time busy mode switches itself off.
Runs in RPRESS_Pause_Orders::set_extra_prep() when extra prep minutes greater than zero are set. The default is the start of the next day in the store's timezone, so busy mode clears at the end of the store's day. The value is stored as extra_until in the pause state.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | int | Unix timestamp at which busy mode ends. |
$minutes | int | Extra prep minutes being set. |
Return value#
int. Unix timestamp at which busy mode ends.
Example#
function my_busy_until( $until, $minutes ) {
return time() + 2 * HOUR_IN_SECONDS;
}
add_filter( 'rpress_pause_orders_busy_until', 'my_busy_until', 10, 2 );
Source#
Applied in:
includes/features/pause-orders/loader.php(line 199), inRPRESS_Pause_Orders::set_extra_prep()
See also#
Was this page helpful?
