Skip to content
Docs
Get RestroPress

Filter

rpress_order_alerts_escalation_subject

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

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

See also#

Was this page helpful?