Code
Small pieces of code that solved a real problem.
Short notes built around a snippet: what it does, where it goes, and what to watch out for.
2026 3 notes
- 02 Dec
A permission callback that checks the post, not only the role
An ability's permission callback receives the input, so it can check the object being touched.
- 02 Dec
Register your first WordPress ability
A category, an ability and its callback: the smallest complete example of the Abilities API.
- 02 Dec
A Playground Blueprint that sets up a demo shop
One JSON file that installs WooCommerce and a theme, names the site and lands you in the dashboard.