Skip to content
Docs
Get RestroPress

Action

rpress_admin_order_notice

Updated
On this page

Fires after the customer order email is sent, to trigger the admin order notification.

Runs at the end of rpress_email_purchase_receipt when its $admin_notice argument is true. RestroPress hooks rpress_admin_email_notice here at priority 10 to send the admin order notification, so removing that callback disables the admin email.

Parameters#

ParameterTypeDescription
$payment_idintID of the order.
$payment_dataarrayOrder meta from _rpress_payment_meta.

Example#

function my_after_admin_order_notice( $payment_id, $payment_data ) {
	update_post_meta( $payment_id, '_my_admin_notified', time() );
}
add_action( 'rpress_admin_order_notice', 'my_after_admin_order_notice', 20, 2 );

Notes#

Only fires when rpress_email_purchase_receipt is called with $admin_notice set to true (the default).

Source#

Fired from:

  • includes/emails/functions.php (line 63), in rpress_email_purchase_receipt()

See also#

Was this page helpful?