woocommerce_email_attachments

woocommerce_email_attachments

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_email_attachments') is found 4 times:

  • /includes/class-wc-emails.php line 779
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
            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 813
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
            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 851
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
            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 589
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    *
     * @return array
     */
    public function get_attachments() {
        return apply_filters( 'woocommerce_email_attachments', array(), $this->id, $this->object, $this );
    }
     
    /**
     * Return email type.
     *
     * @return string