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. Very3 min readยท4wp.hashnode.devOct 12
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 catego6 min readยท4wp.hashnode.devOct 1
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 pag5 min readยท4wp.hashnode.devSep 30
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 on4 min readยท4wp.hashnode.devSep 24
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 runs6 min readยท4wp.hashnode.devSep 22