Action
rpress_view_order_details_form_bottom
On this page
Fires at the bottom of the order details form, before the nonce and hidden fields.
Runs inside the order details form after all panels, immediately before the nonce and the hidden rpress_payment_id and rpress_action=update_payment_details fields are output. Anything echoed here is submitted with the form.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | ID of the order (payment) being viewed. |
Example#
function my_order_form_bottom( $payment_id ) {
echo '<input type="hidden" name="my_order_revision" value="' . esc_attr( get_post_meta( $payment_id, '_my_order_revision', true ) ) . '" />';
}
add_action( 'rpress_view_order_details_form_bottom', 'my_order_form_bottom', 10, 1 );
Source#
Fired from:
includes/admin/payments/view-order-details.php(line 1894)
See also#
Was this page helpful?
