Action
rpress_view_order_details_form_top
On this page
Fires at the top of the order details form content.
Runs inside the edit order form, after the order header and summary cards and before the main two-column layout. Fields output here are submitted with the form.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | The order (payment) ID. |
Example#
function my_order_form_top( $payment_id ) {
$value = get_post_meta( $payment_id, 'my_kitchen_note', true );
echo '<input type="hidden" name="my_kitchen_note" value="' . esc_attr( $value ) . '">';
}
add_action( 'rpress_view_order_details_form_top', 'my_order_form_top' );
Notes#
Save any added field via rpress_update_edited_purchase or rpress_updated_edited_purchase.
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 335)
See also#
Was this page helpful?
