This code snippet modifies the subject line of completed order emails in WooCommerce specifically for downloadable products (such as eBooks). By checking the product category, it ensures that the email subject is relevant and informative for the customer. Add the code to your child theme’s functions.php file or through the Code Snippets plugin.
snippet
How to hide woo category from breadcrumbs – All in One SEO
If you want to remove categories from the breadcrumb trail on WooCommerce product pages, there’s a simple solution using a custom WordPress hook. Breadcrumbs are great for improving navigation and SEO, but sometimes you might not want to show certain elements, like categories, especially on product pages where they may clutter the trail. In this […]
How to hide results for specific statuses in Advanced Woo Search
If you have Advanced Woo Search plugin installed on your Woocommerce site and you are facing the need to not show some specific product statuses in ajax search, then my snippet will help you. For example, I have written a code that does not show items with discontinued status in ajax search, but shows items […]
How to Change PayPal and CC Logos on WooCommerce Checkout
Probably you have noticed that on the checkout page of your Woocommerce site there is no logo for Paypal payment method. Also the icon for credit card payment method looks very unexpressive. If you want to change or personalize the logo on the checkout page of your Woocommerce website, then I have prepared this simple […]
How to Disable schema markup in All in One SEO plugin
This code snippet disables the schema generated by the All in One SEO (AIOSEO) plugin on singular posts or pages (is_singular()) and archive pages (is_archive()). By hooking into the aioseo_schema_disable filter, the function checks the type of page being loaded. If it matches a singular post or archive page, the function returns true, effectively turning […]