woocommerce_mail_content

woocommerce_mail_content

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

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_mail_content') is found 2 times:

  • /includes/emails/class-wc-email.php line 956
    		add_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
    		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' ) );
    
  • /src/Internal/Admin/EmailPreview/EmailPreview.php line 320
     
    		$this->clean_up_filters();
    
    		/** This filter is documented in src/Internal/Admin/EmailPreview/EmailPreview.php */
    		return apply_filters( 'woocommerce_mail_content', $inlined ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingSinceComment
    	}
    
    	/**
    	 * Get a dummy order object without the need to create in the database.
    	 *
    	 * @return WC_Order