WordPress will, by default, automatically update itself when there are security releases. It can also update themes and plugins automatically if necessary. From a security perspective, this is great. However, automatic updates can also present complications.
Blog
Disable WordPress Updates for Specific Users
Learn to disable WordPress core, plugin and/or theme updates for specific users. Especially handy when you want to prevent clients from triggering updates willy-nilly.
Easily Check if Multiple Array Keys Exist in PHP
A simple utility function that checks to see if an array contains multiple keys.
Filtering Multi-Dimensional Arrays in PHP
A simple utility function that enables recursive filtering of multi-dimensional arrays.
Heterogeneous Multi-dimensional Data Access in PHP
Easily fetch deeply nested data from a heterogenous multi-dimensional collection in PHP using dot notation… or whatever that means.
Whitelist and Blacklist Array Keys in PHP
Two utility functions you will definitely want to add to your arsenal are array_keys_whitelist() and array_keys_blacklist().
Reindex an Array in PHP
Occasionally, you may need to arbitrarily reindex an array of data in PHP. WordPress doesn’t really provide a function for doing this, so I put together this code snippet.
Require a Featured Image in WordPress
The visual aspects of a site are important and many themes depend on the ‘Featured Image’ functionality in WordPress to provide a better visual experience. So, it only makes sense that you may want to consider requiring a featured image before a post can be published.
Get Attachment ID from a WordPress Image URL
Taking a WordPress image URL and using it to get the attachment ID is a bit tricky. There are a lot of code samples out there that do this, but they all have problems to some degree or another. Pippin Williamson posted a very elegant solution based on comparing the URL to the guid in… Read More
Add Links to Featured Images in WordPress Programmatically
Featured images are most commonly used to display an image alongside the excerpt for a post on a blog page. If your theme doesn’t link the featured images to the post, can use this code to programmatically add the links.