Skip to content
Docs
Get RestroPress

Action

rpress_payment_billing_details

Updated
On this page

Fires at the end of the billing details section of the order details screen.

Runs after the billing address fields, inside the billing section. It is only rendered when billing fields are enabled for the store.

Parameters#

ParameterTypeDescription
$payment_idintThe order (payment) ID.

Example#

function my_billing_details( $payment_id ) {
	echo '<p class="description">' . esc_html( get_post_meta( $payment_id, 'my_billing_note', true ) ) . '</p>';
}
add_action( 'rpress_payment_billing_details', 'my_billing_details' );

Notes#

Not called when rpress_show_billing_fields() is false.

Source#

Fired from:

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

See also#

Was this page helpful?