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 remove Rank Math plugin dashboard notification
Rank Math is a great SEO plugin that do an amazing job. The only thing that constantly bothers me and my clients is the annoying alerts inside the Wordpress admin area. Unfortunately they don’t disappear if you click on the “X”. If you too are fed up with the notifications from the Rank Math plugin, […]
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!