Skip to content
Docs
Get RestroPress

Action

rpress_payment_view_details

Updated
On this page

Fires after the personal details list in the customer and service panel of an order.

Runs directly after rpress_payment_personal_details_list inside the customer and service edit section of the order details screen. Output is echoed inside the order details form, so inputs added here are submitted with it.

Parameters#

ParameterTypeDescription
$payment_idintID of the order (payment) being viewed.

Example#

function my_payment_view_details( $payment_id ) {
	$value = get_post_meta( $payment_id, '_my_gate_code', true );
	echo '<p><label for="my-gate-code">Gate code</label> ';
	echo '<input type="text" id="my-gate-code" name="my_gate_code" value="' . esc_attr( $value ) . '" /></p>';
}
add_action( 'rpress_payment_view_details', 'my_payment_view_details', 10, 1 );

Source#

Fired from:

  • includes/admin/payments/view-order-details.php (line 1067)

See also#

Was this page helpful?