In WooCommerce, checking the purchased items for each order can be cumbersome as it often requires opening each individual order or downloading reports. However, there’s a faster solution. This code snippet restores a useful feature that was once part of WooCommerce by adding a new column to the WooCommerce orders list (Woocommerce>Orders). The column displays […]
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 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 […]
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 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 […]