WordPress 6.9 introduces the Abilities API, a unified functional interface that enables plugins, themes, and external tools to discover and execute WordPress capabilities programmatically. The API provides a central registry with machine-readable schemas, built-in validation, and permission controls. Developers can register abilities using wp_register_ability() with input/output schemas, making functionality accessible across REST endpoints, blocks, and AI agents. The implementation demonstrates converting a plugin's core function into a reusable ability that works seamlessly in admin pages, REST APIs, and the Block Editor without duplicating code.

26m read timeFrom developer.wordpress.org
Post cover image
Table of contents
What does the Abilities API offer developers?List All URLsInstalling the Abilities APIAbilities to the rescueDiving into Ability registrationAbilities are coming to Core!Using an ability in JavaScriptWhere to learn more and get involvedThis is just the beginning..

Sort: