Recently, one of my old customers asked me to add the customer’s email to the recipient list in the canceled order notification (WooCommerce). I was surprised that this simple option is not there by default. I wrote such a hook, which works great and fulfills its function 100%. This snippet should be added to functions.php […]
hooks
How to Add Post Thumbnails to WordPress RSS Feed
If you use Mailchimp or a similar mailing list service, you’ll probably find this code. This code ensures that the featured image of each post is included in the RSS feed as a element, enhancing the feed with images. Like all hooks this code needs to be inserted into fucntions.php of your child theme. Or […]
How to Disable Payment Method When a Specific Product Category is Available – WooCommerce
Recently one of my clients asked me to make the following change to a website. For specific products, hide all payment methods except Wise Payments. But at the same time hide the Wise Payments payment method for all other products.To solve this problem, I added a “Limited” category and added additional code to functions.php. This […]
How to add email notification when an order is in Pending status in WooCommerce without plugin
Just recently one of my clients asked me to add a notification feature if an order goes into Pending status in his WooCommerce store. This simple hook helps to solve this problem. This code should be inserted into fucntions.php of your child theme.
Replacing original image with a smaller copy in WordPress
This hook is particularly beneficial for those aiming to optimize server disk space. If you frequently upload large images to your WordPress site, you may encounter the challenge of expanding disk space over time. While some web hosts might not find this problematic, if you’re hosted on Rocket.net, additional charges may apply for the space […]
Boost WooCommerce SEO with Additional Category Descriptions
If you’ve ever wanted to add extra content to your WooCommerce category pages maybe for SEO, a special promotion, or just to give more context to your category pages you’ve probably noticed that WooCommerce only gives you a single description field. That’s a bit limiting. In this post, I’ll show you how to add a […]