woocommerce_email_customer_address_section, billing, $order, $sent_to_admin, true
woocommerce_email_customer_address_section, billing, $order, $sent_to_admin, true
Appears in: woocommerce.11.0.0
Hook Type: action
Displaying hooks found in version: woocommerce.11.0.0do_action('woocommerce_email_customer_address_section, billing, $order, $sent_to_admin, true') is found 1 times:
- /templates/emails/plain/email-addresses.php line 41
* @param WC_Order $order Order instance. * @param bool $sent_to_admin If this email is being sent to the admin or not. * @param bool $plain_text If this email is plain text or not. */ do_action( 'woocommerce_email_customer_address_section', 'billing', $order, $sent_to_admin, true ); if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) { $shipping = $order->get_formatted_shipping_address(); if ( $shipping ) { echo "\n" . esc_html( wc_strtoupper( esc_html__( 'Shipping address', 'woocommerce' ) ) ) . "\n\n";