Action
rpress_updated_edited_purchase
On this page
Fires after an order edited in the admin has been saved.
Runs at the end of the order details save routine, after the payment has been saved and any order status change has been applied, and just before the browser is redirected back to the order screen.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | The order (payment) ID. |
Example#
function my_after_order_saved( $payment_id ) {
update_post_meta( $payment_id, 'my_last_edited_by', get_current_user_id() );
}
add_action( 'rpress_updated_edited_purchase', 'my_after_order_saved' );
Notes#
Not reached if the save fails with an error page.
Source#
Fired from:
includes/admin/payments/actions.php(line 284), inrpress_update_payment_details()
See also#
Was this page helpful?
