| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
$sent_to_admin = isset( $args['sent_to_admin'] ) ? $args['sent_to_admin'] : false; |
| 5 |
$email = isset( $args['email'] ) ? $args['email'] : ''; |
| 6 |
$plain_text = isset( $args['plain_text'] ) ? $args['plain_text'] : ''; |
| 7 |
if ( ! class_exists( 'WooCommerce_Germanized' ) && 'yes' !== get_option( 'woocommerce_gzd_display_emails_product_units' ) |
| 8 |
|| ! class_exists( 'WooCommerce_Germanized' ) && 'yes' !== get_option( 'woocommerce_gzd_display_emails_delivery_time' ) |
| 9 |
|| ! class_exists( 'WooCommerce_Germanized' ) && 'yes' !== get_option( 'woocommerce_gzd_display_emails_product_item_desc' ) |
| 10 |
|| ! class_exists( 'WooCommerce_Germanized' ) && 'yes' !== get_option( 'woocommerce_gzd_display_emails_product_attributes' ) |
| 11 |
|| ! class_exists( 'WooCommerce_Germanized' ) && 'yes' !== get_option( 'woocommerce_gzd_display_emails_unit_price' ) ) { |
| 12 |
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); |
| 13 |
} |
| 14 |
|