Skip to content
Docs
Get RestroPress

Filter

rpress_pause_orders_busy_until

Updated
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#

ParameterTypeDescription
$valueintUnix timestamp at which busy mode ends.
$minutesintExtra 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), in RPRESS_Pause_Orders::set_extra_prep()

See also#

Was this page helpful?