woocommerce_email_customer_address_section

woocommerce_email_customer_address_section

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

do_action('woocommerce_email_customer_address_section') is found 4 times:

  • /templates/emails/email-addresses.php line 50
    				 * @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, false );
    				?>
    			</address>
    		</td>
    		<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && $shipping ) : ?>
    			<td style="text-align:<?php echo esc_attr( $text_align ); ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; padding:0;" valign="top" width="50%">
    				<h2><?php esc_html_e( 'Shipping address', 'woocommerce' ); ?></h2>
    
  • /templates/emails/email-addresses.php line 74
    					 * @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', 'shipping', $order, $sent_to_admin, false );
    					?>
    				</address>
    			</td>
    		<?php endif; ?>
    	</tr>
    </table>
    
  • /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";
    
  • /templates/emails/plain/email-addresses.php line 64

    Warning: Undefined array key 66 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 67 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 68 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 69 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    		 * @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', 'shipping', $order, $sent_to_admin, true );
    	}
    }
    
    
    
    
    

See this hook used in plugins: