woocommerce_email_headers

woocommerce_email_headers

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.5

apply_filters('woocommerce_email_headers') is found 4 times:

  • /includes/class-wc-emails.php line 778
    		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 812
    		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 850
    		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 580
    				$header .= 'Bcc: ' . sanitize_text_field( $bcc ) . "\r\n";
    			}
    		}
    
    		return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
    	}
    
    	/**
    	 * Get email attachments.
    	 *
    	 * @return array
    

Examples using woocommerce_email_headers