Discover Abilities
wp_discover_abilitiesDiscover all registered WordPress Abilities (WordPress 6.9+). Abilities are self-describing plugin operations with input/output schemas and annotations (readonly, destructive, idempotent). Filter by category, namespace, or annotation type. Use this to see what plugin-specific actions are available before running them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination | |
| site_id | No | Site ID to target (optional if you have only one connected site) | |
| category | No | Filter by ability category slug (e.g. "content", "commerce") | |
| per_page | No | Number of abilities to return (default 50, max 100) | |
| readonly | No | Filter to only read-only abilities (true) or write abilities (false) | |
| namespace | No | Filter by plugin namespace (e.g. "woocommerce", "yoast") | |
| idempotent | No | Filter to only idempotent abilities (true) | |
| destructive | No | Filter to only destructive abilities (true) or safe abilities (false) |