So most servers do error logging but if you want to improve this functionality you can modify your wp-config.php file with the following code snippet. It consolidates not only the PHP errors but also logs any WordPress bugs that get reported via WordPress debugging...
So I was looking for a way to automatically overwrite a log file utilizing the command prompt and a cron job. So this is how it can be accomplished. cat /dev/null > /location/of/file.txt By adding this to the crontab it will overwrite the file at whatever interval...
So every now and then I find myself wanting to delete all files older than a certain number of days. Here is the linux command to do so. find ./* -mtime +15 -type f -delete
Here is some code I found that can be used to protect a directory but tell the server to still allow access to specific files and folders. SetEnvIf Request_URI “(path/to/folder/)$” allow SetEnvIf Request_URI “(path/to/file\.php)$” allow Order...
So the Gutenberg editor can be very interesting to use and very user friendly. If you are use to using other editors or layout systems then sometimes it is a good idea to disable it in the child theme. All you have to do is add the following code to your...