woocommerce_allow_send_queued_transactional_email

woocommerce_allow_send_queued_transactional_email

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_allow_send_queued_transactional_email') is found 1 times:

  • /includes/class-wc-emails.php line 152
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    * @param string $filter Filter name.
     * @param array  $args Email args (default: []).
     */
    public static function send_queued_transactional_email( $filter = '', $args = array() ) {
        if ( apply_filters( 'woocommerce_allow_send_queued_transactional_email', true, $filter, $args ) ) {
            self::instance(); // Init self so emails exist.
     
            // Ensure gateways are loaded in case they need to insert data into the emails.
            WC()->payment_gateways();
            WC()->shipping();