You might want to override a WooCommerce core template file in your plugin rather than in the theme directory to future proof theme switching. WooCommerce searches the following locations in this order until a match is found. Let’s alter this slightly so that it searches out plugin folder in order to override the WooCommerce template. […]
Category: WordPress Snippets
Sending WordPress Emails Using SMTP
Sending WordPress emails using SMTP is pretty straight forward so rather than using a plugin we can insert a small snippet to do the same thing. All you need for sending WordPress emails via SMTP are your mail server credentials such as username, password and server address. The WordPress email function wp_mail is essentially a […]
Debug Statements Logging In WordPress
Debug statements in WordPress can be displayed by using echo which will display the message on the page. It’s a bit of a messy way to debug but works for simple debugging purposes. A better way to do this is to create a function to write your own debug statements to the debug.log file. Debug […]
Disable WordPress Comment Notification Emails
As an administrator on various sites I was getting tired of receiving comment notification emails for websites. According to the WordPress support page comment notification email, administrators receive comment notifications for all posts. This was not sitting well with me and my email box was starting to fill up with spam approval notices! WordPress […]