Skip to content
Docs
Get RestroPress

Filter

rpress_order_alerts_escalation_lookback_hours

Updated
On this page

Filters how many hours back the escalation check looks for unattended orders.

Runs in RPRESS_Order_Alerts::run_escalation_check(). Only orders placed within this many hours (and after the email was switched on) can be escalated. The value is cast to an integer and clamped to at least 1. The default is 24.

Parameters#

ParameterTypeDescription
$valueintLookback window in hours.

Return value#

int. Number of hours, minimum 1.

Example#

function my_escalation_lookback( $hours ) {
	return 12;
}
add_filter( 'rpress_order_alerts_escalation_lookback_hours', 'my_escalation_lookback' );

Source#

Applied in:

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

See also#

Was this page helpful?