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 […]
Tag: PHP
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 […]
Editing your WordPress wp-config.php File
The wp-config.php file contained in the root of your WordPress install directory contains all the configuration items for connecting and interacting with WordPress. The most important information it contains is the credentials for connecting to the MySQL database which without this you’d just see an white page with an error message saying “Database Not Found. […]
Copy billing to shipping address in WooCommerce
There is no function in WordPress to copy billing to shipping address fields that WooCommerce adds to user profiles. This is quite a tedious task if you are manually creating users via the WordPress dashboard. This article will show you how to use jQuery with a bit of PHP in WordPress to copy the billing […]
Post actions confirming in WordPress
There’s no native ability to add a dialog box for confirming post actions in WordPress. Luckily, since WordPress is extremely configurable we can develop one ourselves! One of the clients recently requested that they wanted a pop up box to alert them if they had not filled in specific text boxes when publishing a new […]