public static function woo_email_header_marker_end($email_heading = '')
 {
     global $wp_email_template_general;
     if (self::check_apply_template_for_woocommerce_emails()) {
         echo '<!--WOO_EMAIL_TEMPLATE_HEADER_END-->';
         ob_get_clean();
         $header = WP_Email_Template_Functions::email_header($email_heading);
         if (isset($_REQUEST['preview_woocommerce_mail']) && $_REQUEST['preview_woocommerce_mail'] == 'true') {
             $template_notice = WP_Email_Template_Functions::apply_email_template_notice(__('Attention! You have selected to apply your WP Email Template to all WooCommerce Emails. Go to Settings in your WordPress admin sidebar > Email Template to customize this template or to reactivate the WooCommerce Email Template.', 'wp_email_template'));
             $header = str_replace('<!--EMAIL_TEMPLATE_NOTICE-->', $template_notice, $header);
         }
         echo $header;
     }
 }
Ejemplo n.º 2
0
 function woo_email_header_marker_end($email_heading = '')
 {
     $wp_email_template_settings = get_option('wp_email_template_settings');
     if (!is_array($wp_email_template_settings)) {
         $wp_email_template_settings = array();
     }
     $wp_email_template_default_settings = WP_Email_Template_Settings::get_settings_default();
     $wp_email_template_settings = array_merge($wp_email_template_default_settings, $wp_email_template_settings);
     if (isset($wp_email_template_settings['apply_for_woo_emails']) && trim(esc_attr($wp_email_template_settings['apply_for_woo_emails'])) == 'yes') {
         echo '<!--WOO_EMAIL_TEMPLATE_HEADER_END-->';
         ob_get_clean();
         $header = WP_Email_Template_Functions::email_header($email_heading);
         if (isset($_REQUEST['preview_woocommerce_mail']) && $_REQUEST['preview_woocommerce_mail'] == 'true') {
             $template_notice = WP_Email_Template_Functions::apply_email_template_notice(__('Attention! You have selected to apply your WP Email Template to all WooCommerce Emails. Go to Settings in your WordPress admin sidebar > Email Template to customize this template or to reactivate the WooCommerce Email Template.', 'wp_email_template'));
             $header = str_replace('<!--EMAIL_TEMPLATE_NOTICE-->', $template_notice, $header);
         }
         echo $header;
     }
 }