public static function check_exclude_subject_for_woocommerce_emails() { $a3_email_template_for_woocommerce = true; $email = new WC_Email(); $current_subject_title = $email->get_subject(); if ( trim( $current_subject_title ) != '' ) { global $wp_email_template_exclude_subject_data; $all_exclude_subject = $wp_email_template_exclude_subject_data->get_all_exclude_subjects(); if ( is_array( $all_exclude_subject ) && count( $all_exclude_subject ) > 0 ) { foreach ( $all_exclude_subject as $subject_data ) { if ( trim( $subject_data->email_subject ) != '' && stristr( $current_subject_title, $subject_data->email_subject ) !== false ) { $a3_email_template_for_woocommerce = false; break; } } } } return $a3_email_template_for_woocommerce; }
/** * get_subject function. * * @access public * @return string */ function get_subject() { return apply_filters('woocommerce_skip_one_email_subject_customer_subscription_unskipped', parent::get_subject(), $this->object); }