Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Woocommerce HTML email option unavailable

I think you missing function argument. just try it.

add_filter('wp_mail_content_type','set_content_type');
    function set_content_type($content_type){
      return 'text/html';
    }

Related Posts:

  1. Edit tag cloud widget number
  2. How to automatically apply woocommerce product title to all product images alt tags?
  3. How to get the original price of the product in woocommerce?
  4. Woocommerce auto cancel On-Hold after X days
  5. Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
  6. WooCommerce – Customer Order History Pagination
  7. Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
  8. The values of custom fields are not available functions.php
  9. WooCommerce – Display variation custom field value [closed]
  10. Output a WooCommerce product custom field in WooCommerce using get_post_meta()
  11. How to add SVG icon above product tab title
  12. Trigger Woocommerce New User Email
  13. My Own layout in WooCommerce pages [closed]
  14. Woocommerce – remove product from category
  15. Limiting woocommerce line_total decimal length
  16. How do I display a user’s previous orders as a select box option on a product?
  17. How do you add customer capability after Woocommerce purchase?
  18. Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
  19. WooCommerce – Reset quantity input field when variation changes
  20. get current product name in functions.php
  21. Set a condition based on WooCommerce checkout city field while placing order
  22. Image as Sales Badge
  23. Automatically remove a canceled order in Woocommerce
  24. Two Different Links for Same Product – WooCommerce [closed]
  25. PHP 8, AJAX mail form to function.php doesn’t work
  26. How can I apply_filters from inside a function?
  27. Pass Category Name, Description and Photo into variables to pass to jQuery
  28. Display a specific category of products in shop page and disable code for specific actions
  29. Woocommerce related product text
  30. Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
  31. Is it possible to intercept all ajax requests and get the parameters and the returns?
  32. WooCommerce: How can I get orders with a custom ID in order meta data object?
  33. How can I get the values of my WordPress $wpdb query in Jquery?
  34. Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
  35. Validation algorithm in checkout field
  36. My new button is in the wrong place
  37. require_once() if a product in woocommerce contains a tag [closed]
  38. Add product to cart for user – WC()->cart->add_to_cart [closed]
  39. Remove item in Checkout
  40. How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
  41. woocommerce specific quantities for product
  42. CSS change in woo commerce Place Order Text [closed]
  43. Get user custom field value on function.php
  44. WP All Import / Update stock quantity from multiple XML files
  45. woocommerce related product title length
  46. Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
  47. How do i wrap woocomerce attribute in list?
  48. Removing files programmatically
  49. Use of antispambot with $curauth->email
  50. Execute PHP code only with specific user role
  51. Woocommerce order status payment
  52. Modify WooCommerce used to get all orders in dashboard
  53. Output product category link from WP_Query
  54. Woocommerce – Exclude variation attribute on specific variation
  55. Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
  56. PHP function for horizontal Woocommerce thumbnails and badges
  57. Run a sql (update) after 12 hours after the user login. Woocommerce users
  58. php code for outputting a custom page in my account
  59. Hide specific shipping methode depending on day and time of day
  60. Programmatically add a product to the cart and set price to zero when buying from certain category
  61. I want to show cart items number if any or nothing, simple CART text
  62. Adding custom field to product category and show it to shop/category shop page
  63. I want to fusion the product columns in email table order
  64. WooCommerce display price before add to cart [closed]
  65. Remove span tags from WooCommerce Downloads page
  66. Best way to use variables in multiple functions?
  67. Woocommerce checkout page – custom field checkbox value into email
  68. Discount in the specific product title using keyword ( Woocoommerce )
  69. Including user data in “new user notification email”
  70. Woocommerce – if selected attribute term equals
  71. split 1 cart item into instock and back ordered
  72. Adding product permalink on admin order page throwing error
  73. Add Product Permalink in woocommerce admin order page
  74. How to override WooCommerce Order Item Meta with data from Cart?
  75. Woocommerce textarea format ignored
  76. How to auto-generate random numbers in username?
  77. Remove generated category and tag class names from woocommerce product & blog listings markup
  78. WP_Query To Display Product Of Brand On Taxonomy Page
  79. Woocommerce Add custom “Add to cart button” in single page with tags
  80. Get Billing Email from WooCommece Checkout and Pass to Fullstory JS
  81. Add missing alt tag to featured images for “storefront” theme
  82. Display text of price (minus 20%) on every product page in a sentence.
  83. Use WP_Query Data In Cookie
  84. Woocommerce Price Text
  85. How to get the rating value of each comment
  86. How to add margin underneath woocommerce total price amount -> productpages
  87. Setting WooCommerce currency programmatically
  88. Woocommerce – Shipping tax class based on cart items not using the highest tax available
  89. Warning: Attempt to read property “term_id” on int – Woocommerce
  90. WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
  91. posts_clauses drop ACF get_field function
  92. Replace the image of a product with its video in the shop page
  93. Dynamic Email Handler with ‘header (“Location: …’
  94. Automatically change insurance quantity based on cart total [closed]
  95. Why does WordPress not send the user the email to add a password?
  96. How call WordPress shortcode inside function file
  97. strict custom php script on specific product category [closed]
  98. Change WooCommerce Order status from frontend form submitted data
  99. Why is my custom email notification after purchase not sending?
  100. How to change product title color in shop page if product has specific product tag (Woocommerce)?
Categories PHP Tags email, functions, html-email, php, woocommerce-offtopic
`post_type` => `any` not giving me my custom post
Hacked WordPress website, as notified by Google Search Console, what to do? [closed]

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress