Skip to content
Docs
Get RestroPress

Action

rpress_view_order_details_totals_before

Updated
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#

ParameterTypeDescription
$payment_idintThe 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?