email-customer-details.php 1021 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Additional Customer Details (plain)
  4. *
  5. * This is extra customer data which can be filtered by plugins. It outputs below the order item table.
  6. *
  7. * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/email-addresses.php.
  8. *
  9. * HOWEVER, on occasion WooCommerce will need to update template files and you
  10. * (the theme developer) will need to copy the new files to your theme to
  11. * maintain compatibility. We try to do this as little as possible, but it does
  12. * happen. When this occurs the version of the template file will be bumped and
  13. * the readme will list any important changes.
  14. *
  15. * @see https://docs.woocommerce.com/document/template-structure/
  16. * @package WooCommerce/Templates/Emails/Plain
  17. * @version 3.4.0
  18. */
  19. if ( ! defined( 'ABSPATH' ) ) {
  20. exit;
  21. }
  22. echo esc_html( wc_strtoupper( __( 'Customer details', 'woocommerce' ) ) ) . "\n\n";
  23. foreach ( $fields as $field ) {
  24. echo wp_kses_post( $field['label'] ) . ': ' . wp_kses_post( $field['value'] ) . "\n";
  25. }