woocommerce_email_subject_ . $this->id, $this->format_string( $this->get_option_or_transient( subject, $this->get_default_subject(
woocommerce_email_subject_ . $this->id, $this->format_string( $this->get_option_or_transient( subject, $this->get_default_subject(
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_email_subject_ . $this->id, $this->format_string( $this->get_option_or_transient( subject, $this->get_default_subject(') is found 1 times:
- /includes/emails/class-wc-email.php line 566
* @param string $subject Subject of the email. * @param object|bool $object The object (ie, product or order) this email relates to, if any. * @param WC_Email $email WC_Email instance managing the email. */ $subject = apply_filters( 'woocommerce_email_subject_' . $this->id, $this->format_string( $this->get_option_or_transient( 'subject', $this->get_default_subject() ) ), $this->object, $this ); if ( $this->block_email_editor_enabled ) { // Because the new email editor uses rich-text component for subject editing, to be ensure that the subject is always in plain text, we need to strip all tags. $subject = wp_strip_all_tags( $this->personalizer->personalize_transactional_content( $subject, $this ) ); } return $subject; }