Filter
rpress_order_alerts_escalation_message
On this page
Filters the HTML body of the unattended-order email.
Runs in RPRESS_Order_Alerts::send_escalation_email() after the body has been assembled with the order summary, total, up to 20 item lines and links to Live Orders and the order details. The string is HTML; escape anything you append.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$message | string | HTML email body. |
$order_id | int | Order ID. |
$minutes | int | Escalation window in minutes. |
Return value#
string. HTML email body.
Example#
function my_escalation_message( $message, $order_id, $minutes ) {
return $message . '<p>' . esc_html__( 'Please call the customer if nobody answers.', 'my-plugin' ) . '</p>';
}
add_filter( 'rpress_order_alerts_escalation_message', 'my_escalation_message', 10, 3 );
Source#
Applied in:
includes/features/order-alerts/loader.php(line 690), inRPRESS_Order_Alerts::send_escalation_email()
See also#
Was this page helpful?
