Skip to content
Docs
Get RestroPress

Filter

rpress_order_alerts_escalation_recipients

Updated
On this page

Filters the recipients of the unattended-order email.

Runs in RPRESS_Order_Alerts::send_escalation_email(). The default is the list returned by rpress_get_admin_notice_emails(). The result is cast to an array and each address is passed through sanitize_email(); if nothing valid is left the email is not sent and the escalation is recorded as failed.

Parameters#

ParameterTypeDescription
$valuearrayRecipient email addresses.
$order_idintOrder ID.

Return value#

array. Recipient email addresses.

Example#

function my_escalation_recipients( $emails, $order_id ) {
	$emails[] = 'manager@example.com';
	return $emails;
}
add_filter( 'rpress_order_alerts_escalation_recipients', 'my_escalation_recipients', 10, 2 );

Source#

Applied in:

  • includes/features/order-alerts/loader.php (line 692), in RPRESS_Order_Alerts::send_escalation_email()

See also#

Was this page helpful?