Skip to content
Docs
Get RestroPress

Action

rpress_view_order_details_totals_after

Updated
On this page

Fires at the end of the order status box on the order details screen.

Runs after the Recalculate Totals control inside the order status and update panel. Output extra controls or notes here.

Parameters#

ParameterTypeDescription
$payment_idintThe order (payment) ID.

Example#

function my_order_totals_after( $payment_id ) {
	echo '<div class="rpress-admin-box-inside"><p>' . esc_html__( 'Totals include packaging.', 'my-plugin' ) . '</p></div>';
}
add_action( 'rpress_view_order_details_totals_after', 'my_order_totals_after' );

Source#

Fired from:

  • includes/admin/payments/view-order-details.php (line 525)

See also#

Was this page helpful?