Filter
rpress_order_alerts_escalation_lookback_hours
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#
| Parameter | Type | Description |
|---|---|---|
$value | int | Lookback 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), inRPRESS_Order_Alerts::run_escalation_check()
See also#
Was this page helpful?
