woocommerce_mail_callback

woocommerce_mail_callback

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_mail_callback') is found 1 times:

  • /includes/emails/class-wc-email.php line 749
    		add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
    		add_filter( 'wp_mail_content_type', array( $this, 'get_content_type' ) );
    
    		$message              = apply_filters( 'woocommerce_mail_content', $this->style_inline( $message ) );
    		$mail_callback        = apply_filters( 'woocommerce_mail_callback', 'wp_mail', $this );
    		$mail_callback_params = apply_filters( 'woocommerce_mail_callback_params', array( $to, wp_specialchars_decode( $subject ), $message, $headers, $attachments ), $this );
    		$return               = $mail_callback( ...$mail_callback_params );
    
    		remove_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
    		remove_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
    		remove_filter( 'wp_mail_content_type', array( $this, 'get_content_type' ) );