Software
Posts on WordPress plugin development, PHP, and the open-source tools we build and maintain.
11 posts in Software.
Articles
How to lazy load WordPress comments (and why your page speed needs it)
A 100-comment thread ships around 100 avatar requests and hundreds of kilobytes before the reader has finished the first paragraph. Here's how to defer the WordPress comment section until someone actually scrolls to it — with a free plugin or by hand — without hurting SEO.
Read more →How to force log out a WordPress user from every device, instantly
Ending a WordPress session on the server is easy — the user's open tabs just don't notice until they click something. Here are four ways to force a user out of every device, from the button hidden in core to a polling script that bounces their tabs to the login screen within a minute, with honest pros and cons for each.
Read more →How to limit concurrent logins and stop account sharing in WordPress
WordPress lets one account stay signed in on as many devices as it likes — a phone, a laptop, and three friends' browsers all at once. Here are four ways to cap concurrent logins per user, from a ten-line snippet to a free plugin with three enforcement modes, with honest pros and cons for each.
Read more →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.