Skip to content
Docs
Get RestroPress

Filter

rpress_order_alerts_escalation_minutes

Updated
On this page

Filters the minutes an order may wait unaccepted before escalation.

Used by the unattended-order check. Orders that are still pending and older than this are escalated by email when that email is enabled. The default comes from the order_alerts_escalation_minutes setting, falling back to 5 and clamped to 1 through 240.

Parameters#

ParameterTypeDescription
$minutesintMinutes before escalation.

Return value#

int. Minutes before escalation.

Example#

add_filter( 'rpress_order_alerts_escalation_minutes', 'my_escalation_minutes', 10, 1 );
function my_escalation_minutes( $minutes ) {
	return 10;
}

Source#

Applied in:

  • includes/features/order-alerts/loader.php (line 204), in RPRESS_Order_Alerts::escalation_minutes()

See also#

Was this page helpful?