Action
rpress_view_order_details_totals_before
On this page
Fires at the start of the order status box on the order details screen.
Runs at the top of the order status and update panel, before the Change status control. Output extra status related fields here.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | The order (payment) ID. |
Example#
function my_order_totals_before( $payment_id ) {
echo '<div class="rpress-admin-box-inside"><p>' . esc_html__( 'Check payment before changing status.', 'my-plugin' ) . '</p></div>';
}
add_action( 'rpress_view_order_details_totals_before', 'my_order_totals_before' );
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 388)
See also#
Was this page helpful?
