Action
rpress_view_order_details_sidebar_before
On this page
Fires at the top of the order details sidebar, before the order status panel.
Runs at the beginning of the sortable sidebar column, ahead of the order status and update panel. Output an additional postbox here.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | The order (payment) ID. |
Example#
function my_order_sidebar_before( $payment_id ) {
echo '<div class="postbox"><div class="inside"><p>' . esc_html( sprintf( 'Order #%d', $payment_id ) ) . '</p></div></div>';
}
add_action( 'rpress_view_order_details_sidebar_before', 'my_order_sidebar_before' );
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 341)
See also#
Was this page helpful?
