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 […]
snippet
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.
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 […]
How to fix sending emails in Gravity Forms
I’ve been approached by Gravity Forms users a lot lately with the same problem. Their forms stop sending emails after updating the plugin. The problem is caused by switching to the new ajax method of form submission. If you are facing the same problem, then its simple to solve it via a hook. To force […]
How to prevent bots from adding items to cart – WooCommerce
If you use the Abandoned Cart Recovery for WooCommerce plugin (or its similar plugin), you’ve probably noticed that many products are added by bots. The main problem is that some of these bots are googlebot. Why does Googlebot add items to the cart? Googlebot crawls the site by clicking on all available links, including “Add […]