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 […]
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 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 Display the Last Modified Date – WordPress
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!
How to Add Customer Email to WooCommerce Cancelled Order Notification
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 […]
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 […]