Action
rpress_view_order_details_payment_meta_before
On this page
Fires at the start of the payment details box on the order details screen.
Runs at the top of the box that lists the order's gateway and transaction ID. Output extra payment information here.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | The order (payment) ID. |
Example#
function my_payment_meta_before( $payment_id ) {
echo '<div class="rpress-admin-box-inside"><p>' . esc_html__( 'Payment verified.', 'my-plugin' ) . '</p></div>';
}
add_action( 'rpress_view_order_details_payment_meta_before', 'my_payment_meta_before' );
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 599)
See also#
Was this page helpful?
