Skip to content
Docs
Get RestroPress

Filter

rpress_order_alerts_escalation_message

Updated
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#

ParameterTypeDescription
$messagestringHTML email body.
$order_idintOrder ID.
$minutesintEscalation 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), in RPRESS_Order_Alerts::send_escalation_email()

See also#

Was this page helpful?