PluginProbe
WooCommerce / 11.0.0
WooCommerce v11.0.0
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / templates / emails / plain / admin-failed-order.php
admin-failed-order.php
68 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin failed order email (plain text)
4 *
5 * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/admin-failed-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://woocommerce.com/document/template-structure/
14 * @package WooCommerce\Templates\Emails\Plain
15 * @version 9.8.0
16 */
17
18 use Automattic\WooCommerce\Utilities\FeaturesUtil;
19
20 defined( 'ABSPATH' ) || exit;
21
22 $email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' );
23
24 echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
25 echo esc_html( wp_strip_all_tags( $email_heading ) );
26 echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
27
28 /* translators: %1$s: Order number. %2$s: Customer full name. */
29 $text = __( 'Payment for order #%1$s from %2$s has failed. The order was as follows:', 'woocommerce' );
30 if ( $email_improvements_enabled ) {
31 /* translators: %1$s: Order number. %2$s: Customer full name. */
32 $text = __( 'Unfortunately, the payment for order #%1$s from %2$s has failed. The order was as follows:', 'woocommerce' );
33 }
34 echo sprintf( esc_html( $text ), esc_html( $order->get_order_number() ), esc_html( $order->get_formatted_billing_full_name() ) ) . "\n\n";
35
36 /*
37 * @hooked WC_Emails::order_details() Shows the order details table.
38 * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
39 * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
40 * @since 2.5.0
41 */
42 do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
43
44 echo "\n----------------------------------------\n\n";
45
46 /*
47 * @hooked WC_Emails::order_meta() Shows order meta data.
48 */
49 do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
50
51 /*
52 * @hooked WC_Emails::customer_details() Shows customer details
53 * @hooked WC_Emails::email_address() Shows email address
54 */
55 do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
56
57 echo "\n\n----------------------------------------\n\n";
58
59 /**
60 * Show user-defined additional content - this is set in each email's settings.
61 */
62 if ( $additional_content ) {
63 echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) );
64 echo "\n\n----------------------------------------\n\n";
65 }
66
67 echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
68