PHP 8.4 Property Hooks in Real Code
Replacing a page of getters and setters with hooks, and where we drew the line.
8 posts — PHP and WordPress developer for fifteen years. Tomás maintains a handful of open-source plugins and a strong opinion about hooks.
Showing 8 posts
Replacing a page of getters and setters with hooks, and where we drew the line.
Permission callbacks, argument schemas, and nonces for a custom endpoint.
The same slow request inspected in both frameworks.
A screencast from an empty folder to PSR-4 autoloading with a classmap fallback.
Concepts from a client project that taught us a lot about the dashboard.
A baseline file, a few generics, and a plan to pay down the rest.
The handful of commands we type every day, and the aliases that shorten them.
A screencast adding a section, a setting, and a control with live preview.