wp-connectors-api
WordPress Connectors API
WordPress 7.0 introduced the Connectors API; 7.1 adds Application Password credentials. Core uses the registry for Settings > Connectors and AI provider credentials. A connector is not the service client itself: it describes how the service is named, displayed, installed, authenticated, and discovered.
When to use this skill
Trigger when ANY of the following is true:
- Code calls
wp_get_connector(),wp_get_connectors(),wp_is_connector_registered(), or hookswp_connectors_init. - A plugin needs to appear on Settings > Connectors or expose provider credentials.
- The task mentions WordPress connectors, AI provider setup, API keys, Application Password credentials,
WP_Connector_Registry, or@wordpress/connectors. - Reviewing code that stores API keys or
username/passwordcredential objects for an external service.
Availability
The Connectors API is core-only in WordPress 7.0+. Public lookup functions are available after init, because core initializes the registry on init priority 15. Feature-detect application_password support when retaining WordPress 7.0 compatibility.
AI provider connectors are registered only when wp_supports_ai() is true. wp_supports_ai() can be disabled by WP_AI_SUPPORT or the wp_supports_ai filter, so AI connectors must be feature-detected.