WordPress 7.0 introduces the Connectors API, a new framework for registering and managing connections to external services, initially focused on AI providers. It provides standardized API key management, provider discovery, and an admin UI for configuring AI services. Three built-in connectors (Anthropic, Google, OpenAI) are included. Plugin developers can auto-discover providers via the WP AI Client registry or manually register connectors using the wp_connectors_init action. The API exposes public functions (wp_get_connector, wp_get_connectors, wp_is_connector_registered) and a WP_Connector_Registry class. API keys can be sourced from environment variables, PHP constants, or the database. Future releases plan to expand authentication methods, lift the ai_provider type restriction, and add a JavaScript registration API for custom connector UIs.

6m read timeFrom make.wordpress.org
Post cover image
Table of contents
Table of ContentsWhat is a connector?How AI providers are auto-discoveredThe Settings > Connectors admin screenAuthentication and API key managementPublic API functionsOverriding connector metadataThe initialization lifecycleLooking ahead

Sort: