Keine Beschreibung

admin-new-order.php 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Admin new order email (plain text)
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/admin-new-order.php.
  6. *
  7. * HOWEVER, on occasion WooCommerce will need to update template files and you
  8. * (the theme developer) will need to copy the new files to your theme to
  9. * maintain compatibility. We try to do this as little as possible, but it does
  10. * happen. When this occurs the version of the template file will be bumped and
  11. * the readme will list any important changes.
  12. *
  13. * @see https://docs.woocommerce.com/document/template-structure/
  14. * @package WooCommerce\Templates\Emails\Plain
  15. * @version 3.7.0
  16. */
  17. defined( 'ABSPATH' ) || exit;
  18. echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
  19. echo esc_html( wp_strip_all_tags( $email_heading ) );
  20. echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
  21. /* translators: %s: Customer billing full name */
  22. echo sprintf( esc_html__( 'You’ve received the following order from %s:', 'woocommerce' ), esc_html( $order->get_formatted_billing_full_name() ) ) . "\n\n";
  23. /*
  24. * @hooked WC_Emails::order_details() Shows the order details table.
  25. * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
  26. * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
  27. * @since 2.5.0
  28. */
  29. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
  30. echo "\n----------------------------------------\n\n";
  31. /*
  32. * @hooked WC_Emails::order_meta() Shows order meta data.
  33. */
  34. do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
  35. /*
  36. * @hooked WC_Emails::customer_details() Shows customer details
  37. * @hooked WC_Emails::email_address() Shows email address
  38. */
  39. do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
  40. echo "\n\n----------------------------------------\n\n";
  41. /**
  42. * Show user-defined additional content - this is set in each email's settings.
  43. */
  44. if ( $additional_content ) {
  45. echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) );
  46. echo "\n\n----------------------------------------\n\n";
  47. }
  48. echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );