woocommerce_email_headers

woocommerce_email_headers

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_email_headers') is found 5 times:

  • /includes/class-wc-emails.php line 707
    		wp_mail(
    			apply_filters( 'woocommerce_email_recipient_low_stock', get_option( 'woocommerce_stock_email_recipient' ), $product, null ),
    			apply_filters( 'woocommerce_email_subject_low_stock', $subject, $product, null ),
    			apply_filters( 'woocommerce_email_content_low_stock', $message, $product ),
    			apply_filters( 'woocommerce_email_headers', '', 'low_stock', $product, null ),
    			apply_filters( 'woocommerce_email_attachments', array(), 'low_stock', $product, null )
    		);
    	}
    
    	/**
    	 * No stock notification email.
    
  • /includes/class-wc-emails.php line 741
    		wp_mail(
    			apply_filters( 'woocommerce_email_recipient_no_stock', get_option( 'woocommerce_stock_email_recipient' ), $product, null ),
    			apply_filters( 'woocommerce_email_subject_no_stock', $subject, $product, null ),
    			apply_filters( 'woocommerce_email_content_no_stock', $message, $product ),
    			apply_filters( 'woocommerce_email_headers', '', 'no_stock', $product, null ),
    			apply_filters( 'woocommerce_email_attachments', array(), 'no_stock', $product, null )
    		);
    	}
    
    	/**
    	 * Backorder notification email.
    
  • /includes/class-wc-emails.php line 779
    		wp_mail(
    			apply_filters( 'woocommerce_email_recipient_backorder', get_option( 'woocommerce_stock_email_recipient' ), $args, null ),
    			apply_filters( 'woocommerce_email_subject_backorder', $subject, $args, null ),
    			apply_filters( 'woocommerce_email_content_backorder', $message, $args ),
    			apply_filters( 'woocommerce_email_headers', '', 'backorder', $args, null ),
    			apply_filters( 'woocommerce_email_attachments', array(), 'backorder', $args, null )
    		);
    	}
    
    	/**
    	 * Adds Schema.org markup for order in JSON-LD format.
    
  • /includes/emails/class-wc-email.php line 468
    		} elseif ( $this->get_from_address() && $this->get_from_name() ) {
    			$header .= 'Reply-to: ' . $this->get_from_name() . ' <' . $this->get_from_address() . ">\r\n";
    		}
    
    		return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
    	}
    
    	/**
    	 * Get email attachments.
    	 *
    	 * @return array
    
  • /src/Internal/Admin/Notes/EmailNotification.php line 100
    	 * @return string
    	 */
    	public function get_headers() {
    		$header = 'Content-Type: ' . $this->get_content_type() . "\r\n";
    		return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
    	}
    
    	/**
    	 * Get email subject.
    	 *
    	 * @return string
    

Examples using woocommerce_email_headers