woocommerce_email_attachments

woocommerce_email_attachments

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

See hook in core

Displaying hooks found in version: woocommerce.8.8.3

apply_filters('woocommerce_email_attachments') is found 4 times:

  • /includes/class-wc-emails.php line 708
    			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 742
    			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 780
    			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 477
    	 *
    	 * @return array
    	 */
    	public function get_attachments() {
    		return apply_filters( 'woocommerce_email_attachments', array(), $this->id, $this->object, $this );
    	}
    
    	/**
    	 * Return email type.
    	 *
    	 * @return string