Skip to content
Docs
Get RestroPress

Action

rpress_payment_personal_details_list

Updated
On this page

Fires at the end of the customer and service edit panel on the order details screen.

Runs inside the customer and service edit section of the order details screen, after the built-in fields and just before the Cancel button. Fields echoed here are part of the order details form, which posts rpress_action=update_payment_details. It is kept for backwards compatibility and is followed immediately by rpress_payment_view_details.

Parameters#

ParameterTypeDescription
$payment_idintID of the order (payment) being viewed.
$payment_metaarrayThe order meta array returned by RPRESS_Payment::get_meta().
$user_infoarrayThe customer info array for the order, from rpress_get_payment_meta_user_info().

Example#

function my_customer_extra_field( $payment_id, $payment_meta, $user_info ) {
	$value = get_post_meta( $payment_id, '_my_customer_ref', true );
	echo '<p><label for="my-customer-ref">Customer ref</label> ';
	echo '<input type="text" id="my-customer-ref" name="my_customer_ref" value="' . esc_attr( $value ) . '" /></p>';
}
add_action( 'rpress_payment_personal_details_list', 'my_customer_extra_field', 10, 3 );

Notes#

Legacy hook kept alongside rpress_payment_view_details. To save custom fields, hook rpress_update_edited_purchase, which runs while the form is processed.

Source#

Fired from:

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

See also#

Was this page helpful?