Action
rpress_view_order_details_payment_meta_after
On this page
Fires at the end of the payment details box on the order details screen.
Runs after the gateway and transaction ID rows. Output extra payment information here.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | The order (payment) ID. |
Example#
function my_payment_meta_after( $payment_id ) {
$ref = get_post_meta( $payment_id, 'my_payment_ref', true );
if ( $ref ) {
echo '<div class="rpress-admin-box-inside"><p>' . esc_html( $ref ) . '</p></div>';
}
}
add_action( 'rpress_view_order_details_payment_meta_after', 'my_payment_meta_after' );
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 642)
See also#
Was this page helpful?
