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 […]
WordPress & WooCommerce Hooks and Snippets: Customizing and Extending Functionality
Enhance your WordPress and WooCommerce sites with powerful hooks and custom code snippets. Hooks let you extend or modify functionality without touching core files, making your site more flexible, efficient, and easier to maintain. This method ensures your customizations remain update-friendly and aligned with your business needs.
Whether you’re optimizing for speed, tightening security, or adding new features, these code snippets offer practical solutions. From small enhancements to advanced customizations, you’ll find tools to fine-tune your site and unlock its full potential.
How to Disable Payment Method When a Specific Product Category is Available
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 Flash Sale to WooCommerce site without plugins on Kadence
If you have a WooCommerce site and want to increase sales on it, then I recommend trying Flash Sale. What is Flash Sale? It’s a time-limited sale accompanied by a counter that encourages your customers to make a purchase immediately, without delaying. The time limit creates a sense of urgency and can significantly increase conversion […]
How to Display the Last Modified Date
Today I’m going to share with you a simple snippet for WordPress that displays the date of last modified blog post. As always, you should add this snippet to the functions.php file of your child theme. Good luck!
Add an Additional “Add to Cart” Button Anywhere in WordPress
If you use the free Elementor or another WordPress page builder, you’ve probably noticed that there’s no easy way to add an extra “Add to Cart” button for the product you’re currently viewing. That’s where a small piece of code comes in handy. With just a few lines of code, you can create a customizable […]
Fixing Accessibility Issue in Google PageSpeed Insights for Divi
If you’re working with Divi and running a PageSpeed Insights test, you may have noticed this accessibility warning: [user-scalable=”no”] is used in the <meta name=”viewport”> element or the [maximum-scale] attribute is less than 5. This basically means that the site is preventing users from zooming properly on mobile devices, which is not great for accessibility. […]


