Free Up Server Disk Space
Recently I spent some time clearing up more free space on my server. Here are some notes on things to check when doing so.
Check for PHP cURL
Quick snippet for checking whether or not PHP’s cURL is available on the server.
Update WordPress Post With Current Time
Here is a simple technique for updating WordPress posts with the current date and time. Useful for timezone/server transfers.
Truncate Database Table
Quick SQL code snippet that enables you to truncate any MySQL database table.
Find duplicate email addresses in WordPress
This tutorial explains how to find duplicate email addresses in your WordPress database. That way you can delete or modify as needed.
Get All User Email Addresses in WordPress
Putting together a mailing list? Here is an easy way to get all user email addresses from your WordPress database.
PHP Error Log Tricks
Super useful trick for customizing error logs when working with PHP.
Disable WordPress Automatic Updates
In case you haven’t noticed, WordPress auto-updates its core files by default. Neat but not always desired. Here is how to disable auto-updates with a few lines of code.
Strip Slashes from PHP Magic Quotes
Here are a couple of functions to strip or remove slashes (i.e., backslashes) from variables when PHP magic quotes are enabled on the server.
Using WordPress Filter and Action Hooks
In this tutorial, we have two quick examples showing how to use WordPress filter and action hooks. First we’ll look at how to use filter hooks, and then action hooks.
Date and Time with PHP and WordPress
This post explains the difference between displaying the date and time with PHP vs. displaying the date and time with WordPress.
WordPress Get Category ID from Slug
Quick WordPress snippet for getting the category ID from the category slug.