Software
Posts on WordPress plugin development, PHP, and the open-source tools we build and maintain.
8 posts in Software.
Articles
How to automatically log out inactive users in WordPress
WordPress keeps a login alive for 2 days — 14 with "Remember Me" — no matter how long the browser sits untouched. Here are four ways to add an idle timeout that signs inactive users out, from a one-line snippet to a full warning-countdown setup, with honest pros and cons for each.
Read more →
How to view active login sessions on a WordPress site
WordPress lists every account that exists, but never the ones signed in right now. Here are four ways to see active login sessions — from a raw SQL query to a one-click admin tool — with honest pros and cons for each.
Read more →
404 to 301 v4: a complete rewrite for custom redirects and 404 error management
404 to 301 v4 is a ground-up rewrite — a React admin, a full custom redirect manager, indexed database tables, a REST API, WP-CLI support, and an official add-ons catalogue.
Read more →
Partial string search in an array using PHP
There's no built-in PHP function to find every array element that contains a substring. Here's the small helper I wrote for it — and the two one-liners that replace it on modern PHP.
Read more →
My first WordPress core contribution is live
WordPress 4.7 shipped today with my name in the contributor list — a small patch for a broken importer link that now runs on millions of sites. Here's the bug, the fix, and why giving back is worth it.
Read more →
What the 404 to 301 tracking incident taught me about plugin security
In 2016 my most popular plugin shipped a usage-tracking feature that a partner turned into cloaked ads for search-engine crawlers. Here's a level-headed account of what went wrong and the lessons that still guide how I build plugins.
Read more →
Countdown redirect using JavaScript
How to send a visitor to another page after a visible countdown — a clean, accessible JavaScript version, plus a no-JavaScript fallback and the setTimeout pitfall to avoid.
Read more →
Laravel bail: stop validation on the first failure
A single validation rule kept firing every check on a field and throwing a database error along the way. The fix was a one-word rule called bail — one I ended up contributing to Laravel itself.
Read more →Tags in Software
Learn how we can help you build better.
Questions about a plugin, a licence, or an expert advisor — ask and get a straight answer from the team that wrote the code.