Skip to content
Docs
Get RestroPress

Filter

rpress_pause_orders_busy_steps

Updated
On this page

Filters the extra prep time steps offered for busy mode, in minutes.

Runs in RPRESS_Pause_Orders::busy_steps(). The default is 10, 20 and 30. Every value is passed through absint().

Parameters#

ParameterTypeDescription
$valueint[]Allowed extra prep steps in minutes.

Return value#

int[]. Allowed extra prep steps.

Example#

function my_busy_steps( $steps ) {
	return array( 5, 15, 30, 45 );
}
add_filter( 'rpress_pause_orders_busy_steps', 'my_busy_steps' );

Source#

Applied in:

  • includes/features/pause-orders/loader.php (line 154), in RPRESS_Pause_Orders::busy_steps()

See also#

Was this page helpful?