woocommerce_email_attachments
Get email attachments.
Usage
add_filter( 'woocommerce_email_attachments', 'wp_kama_woocommerce_email_attachments_filter', 10, 4 ); /** * Function for `woocommerce_email_attachments` filter-hook. * * @param $array * @param $id * @param $object * @param $that * * @return */ function wp_kama_woocommerce_email_attachments_filter( $array, $id, $object, $that ){ // filter... return $array; }
- $array
- -
- $id
- -
- $object
- -
- $that
- -
Where the hook is called
woocommerce_email_attachments
woocommerce_email_attachments
woocommerce_email_attachments
woocommerce_email_attachments
woocommerce/includes/emails/class-wc-email.php 589
return apply_filters( 'woocommerce_email_attachments', array(), $this->id, $this->object, $this );
woocommerce/includes/class-wc-emails.php 779
apply_filters( 'woocommerce_email_attachments', array(), 'low_stock', $product, null )
woocommerce/includes/class-wc-emails.php 813
apply_filters( 'woocommerce_email_attachments', array(), 'no_stock', $product, null )
woocommerce/includes/class-wc-emails.php 851
apply_filters( 'woocommerce_email_attachments', array(), 'backorder', $args, null )