Action
rpress_view_order_details_sidebar_after
On this page
Fires after the order logs box in the sidebar of the order details screen.
Runs on the order details admin screen, inside the side column, immediately after the order logs box. Use it to output an extra sidebar box for the order. Output is echoed directly.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | ID of the order (payment) being viewed. |
Example#
function my_order_sidebar_box( $payment_id ) {
$note = get_post_meta( $payment_id, '_my_kitchen_note', true );
echo '<div class="postbox"><h3 class="hndle"><span>Kitchen note</span></h3>';
echo '<div class="inside">' . esc_html( $note ) . '</div></div>';
}
add_action( 'rpress_view_order_details_sidebar_after', 'my_order_sidebar_box', 10, 1 );
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 829)
See also#
Was this page helpful?
