MVC in WordPress: The Pattern Everyone Learns, Few Truly Apply๐ Originally published on 4wp.dev โ MVC Pattern in WordPress. Long read on LinkedIn: MVC in WordPress: the pattern everyone learns, few truly apply. Every WordPress developer has heard of MVC. Very Oct 12 ยท 3 min read4wp.hashnode.dev
You're a Tenant, Not the Owner: 6 Doors in Someone Else's wp-admin, and How Not to Be a Bad NeighborOriginally published on 4wp.dev. The Premise wp-admin isn't yours. The owner is WordPress core, and every active plugin is a tenant with its own key to a shared apartment. The six hooks in this categoOct 1 ยท 6 min read4wp.hashnode.dev
GraphQL for Headless WordPress in Practice (4wp.dev Hooks Series): From First Query to ProductionMost WPGraphQL tutorials end at the first query. This one goes further: a small Next.js (App Router) blog on top of headless WordPress, taken all the way to a production-ready setup. We'll build a pagSep 30 ยท 5 min read4wp.hashnode.dev
Enqueue Hooks: Four Hooks, Four Different Zones โ and How Not to Mix Them UpOn the surface, these five hooks all do the same thing โ load CSS/JS. But four of them sound almost identical while each one runs in a different zone of the site. Mix them up, and block styles leak onSep 24 ยท 4 min read4wp.hashnode.dev
A Hook That Fires Twice โ and How Not to Trigger an Infinite Loop When Saving a PostThe Problem A typical case: a developer hooks logic onto save_post โ update a counter, sync an external service, recalculate something based on the post's fields. The code runs... and immediately runsSep 22 ยท 6 min read4wp.hashnode.dev