r/WordpressPlugins • u/wpninjapro • 20d ago
[FREE] I scanned 298 wordpress.org plugins for wp_register_ability() calls and found 4,841 abilities. Where does a static read break down?
Since 6.9, a plugin can hook wp_abilities_api_init and call wp_register_ability() with an input and output schema, a permission_callback and meta.annotations (readonly, destructive, idempotent). I wanted to know how many wordpress.org plugins really do it, so I scanned current code instead of readmes.
Disclosure: I'm the author of Agent Abilities for MCP, a free plugin whose Bridge exposes abilities from other plugins to MCP clients. I have an interest in this data being right, and in hearing where it's wrong.
Directory updated 10 November (118 of the 298 records still show their 28 September check): 298 free plugins, 4,841 abilities. 64 are conditional, with some or all tools needing a setting, a feature or a license switched on. From the 28 September check: Elementor registers 27, but many return an availability error until its V4 editor feature (and, for some, a license tier) is enabled; ACF needs its AI setting; Fluent Forms needs its MCP toggle. I excluded 38 more AI connector plugins that run their own MCP server.
Where a static read falls short:
- I can only diff ids against an earlier count when they're written as literals. Most of the 118 records I couldn't re-verify register through loops or helpers, so they keep their 28 September counts.
- A count is what the code registers. A filter or flag can still remove some at runtime.
- Annotations are the plugin's own claim. I treat an unlabelled ability as destructive, and I don't check that a readonly callback really never writes.
- For paid plugins I only checked vendor docs (36 of them, 7 publish ids), so those aren't counts at all.
To check your own site on 6.9 or newer, this lists what is registered:
wp eval 'foreach ( wp_get_abilities() as $ability ) { echo $ability->get_name(), "\n"; }'
wp_has_ability( 'vendor/name' ) answers it for one id.
What did I miss? I'd most like to hear about registration patterns a static scan gets wrong (ids built in loops, late hooks, anything gated by a runtime condition). If you ship a plugin that registers abilities and I counted it wrong, say so and I'll correct the entry. The link is in the first comment.