Action
rpress_view_order_details_main_before
On this page
Fires after the customer and service section and before the order items on the order details screen.
Runs in the main column of the order details screen, between the customer and service section and the order items section. Use it to insert an additional panel. Output is echoed directly.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | ID of the order (payment) being viewed. |
Example#
function my_order_main_before( $payment_id ) {
echo '<div class="postbox"><div class="inside">Order #' . absint( $payment_id ) . ' delivery window confirmed.</div></div>';
}
add_action( 'rpress_view_order_details_main_before', 'my_order_main_before', 10, 1 );
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 1074)
See also#
Was this page helpful?
