Filter
rpress_order_alerts_escalation_subject
On this page
Filters the subject of the unattended-order email.
Runs in RPRESS_Order_Alerts::send_escalation_email() before the message body is built. The default reads 'Order %1$s has not been accepted for %2$d minutes' using the formatted order number and the escalation window.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$subject | string | Email subject. |
$order_id | int | Order ID. |
$minutes | int | Escalation window in minutes. |
Return value#
string. Email subject.
Example#
function my_escalation_subject( $subject, $order_id, $minutes ) {
return '[Urgent] ' . $subject;
}
add_filter( 'rpress_order_alerts_escalation_subject', 'my_escalation_subject', 10, 3 );
Source#
Applied in:
includes/features/order-alerts/loader.php(line 669), inRPRESS_Order_Alerts::send_escalation_email()
See also#
Was this page helpful?
