While sorting an array of objects recently, I needed to sort by an identifier prefixed with two letters and ended with numbers. An example …
How to Query WordPress Multisite by ACF Option Values
Did you know WordPress Multisite got some powerful new functionality in WordPress 5.1, allowing you to query sites by meta values? This …
How to Remove the My Sites Menu From the WordPress Admin Bar
I've been working on a WordPress Multisite installation that is going to eventually have upwards of 20,000 sites. Somewhere around the 50 …
Shared Uploads Directory in WordPress Multisite
If you're working with WordPress Multisite, you might encounter a scenario where you want all uploaded media to share the same folder. In my …
WordPress Multisite Domain Issues? You Might Be Forgetting to Call restore_current_blog
Recently, I created a WordPress Multisite installation on Amazon AWS Lightsail. I had this bizarre issue where my child sites were working, …
How to Remove Duplicate Items From an Array in JavaScript (the Easy Way)
Languages such as PHP have methods for de-duplicating arrays, but Javascript strangely does not. In PHP, you can write. array_uniqueAnd this …
Creating a Custom WordPress REST API Endpoint That Can Accept Spaces
The WordPress REST API is one of my favourite features in WordPress. The ability to create custom endpoints for getting data and other …
Don’t Back Projects on Kickstarter Until Supply Chains Are Fixed
The world might be attempting to get back to normal under the "new normal" label, but supply chains are still absolutely busted. As we head …
Querying WordPress Multisite Sites With Meta Queries
WordPress documentation is usually robust. However, recently I had a use case where I needed to query sites by custom meta values. In …