Skip to content
Docs
Get RestroPress

Filter

rpress_admin_order_from_address

Updated
On this page

Filters the sender email address used in the admin order notification.

Runs in rpress_admin_email_notice after the From Email setting (from_email) is read, falling back to the site admin email. The result becomes the From address of the notification sent to the store admin recipients.

Parameters#

ParameterTypeDescription
$from_emailstringSender email address.
$payment_idintID of the order.
$payment_dataarrayOrder meta passed to the admin notice.

Return value#

string. The sender email address to use.

Example#

function my_admin_order_from_address( $from_email, $payment_id, $payment_data ) {
	return 'alerts@example.com';
}
add_filter( 'rpress_admin_order_from_address', 'my_admin_order_from_address', 10, 3 );

Source#

Applied in:

  • includes/emails/functions.php (line 119), in rpress_admin_email_notice()

See also#

Was this page helpful?