Action
rpress_after_order_title
On this page
Fires after the order title area of the order details screen.
The output is captured and printed in the top alert area after the notices, after passing through wp_kses_post(). Use it for short badges or messages tied to the order.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | The order (payment) ID. |
Example#
function my_after_order_title( $payment_id ) {
echo '<p>' . esc_html( get_post_meta( $payment_id, 'my_source', true ) ) . '</p>';
}
add_action( 'rpress_after_order_title', 'my_after_order_title' );
Notes#
Output is buffered, so disallowed HTML is stripped.
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 192)
See also#
Was this page helpful?
