Action
rpress_view_order_details_main_after
On this page
Fires after the order notes box at the end of the main column on the order details screen.
Runs at the bottom of the main column of the order details screen, after the order notes box and before the form closes. Output is echoed directly.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | ID of the order (payment) being viewed. |
Example#
function my_order_main_after( $payment_id ) {
echo '<div class="postbox"><div class="inside">Printed tickets: ' . absint( get_post_meta( $payment_id, '_my_ticket_count', true ) ) . '</div></div>';
}
add_action( 'rpress_view_order_details_main_after', 'my_order_main_after', 10, 1 );
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 1889)
See also#
Was this page helpful?
