Skip to content
Docs
Get RestroPress

Action

rpress_view_order_details_after

Updated
On this page

Fires after the order details form, at the end of the order details screen.

Runs after the closing form tag inside the wrap element of the order details screen. Use it for markup or scripts that must sit outside the form, such as a modal.

Parameters#

ParameterTypeDescription
$payment_idintID of the order (payment) being viewed.

Example#

function my_order_details_after( $payment_id ) {
	echo '<div id="my-order-modal" data-order="' . absint( $payment_id ) . '" hidden></div>';
}
add_action( 'rpress_view_order_details_after', 'my_order_details_after', 10, 1 );

Source#

Fired from:

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

See also#

Was this page helpful?