Action
rpress_view_order_details_update_after
On this page
Fires after the Save Order and delete actions on the order details screen.
Runs at the end of the update box that contains the Save Order button and the delete link. Output extra controls here.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | The order (payment) ID. |
Example#
function my_order_update_after( $payment_id ) {
echo '<p class="description">' . esc_html__( 'Changes are logged.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_view_order_details_update_after', 'my_order_update_after' );
Notes#
Called from both branches of the template (a hidden box in the trash state and the normal box); only one branch runs per request.
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 540)includes/admin/payments/view-order-details.php(line 555)
See also#
Was this page helpful?
