Deactivate Coming Soon Page at Specified Date/Time

Using the CMP – Coming Soon & Maintenance Plugin by NiteoThemes plugin allows you to put up a message while you are developing a site. On rare occasions you want to be able to launch the site at a specified time. I was able to find a way to set a launch date and then...

Deactivate post after certain date

Here is a little function that upon loading of site checks to see if the date is past the set date for that post id.  If so then it sets that post to draft mode and removes the post from the live site. function deactivate_post_check() { $post_ids = array(‘345'...

Debug Pending Updates

This function can be used to help find what needs to be updated in WordPress when the backend will not tell you. <?php /** * Debug Pending Updates * * Crude debugging method that will spit out all pending plugin * and theme updates for admin level users when...

Debugging and Error Logging in WordPress

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...

Directory Protection for WordPress via .htaccess

So I have found that the regular Directory Protection feature in CPanel does not work straight out of the box with WordPress installs.  In the below code after you setup a protection through CPanel you can take the provided data and customize it to match what is...