[wp-trac] [WordPress Trac] #65020: Connectors: Support custom plugin is_active callback in connector registry and plugin status output
WordPress Trac
noreply at wordpress.org
Wed May 6 19:56:56 UTC 2026
#65020: Connectors: Support custom plugin is_active callback in connector registry
and plugin status output
-------------------------------------------------+-------------------------
Reporter: iamadisingh | Owner:
| jorgefilipecosta
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting
| Review
Component: AI | Version: trunk
Severity: normal | Resolution: fixed
Keywords: connectors has-patch commit has- | Focuses:
unit-tests fixed-major dev-reviewed |
-------------------------------------------------+-------------------------
Changes (by desrosj):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"62309" 62309]:
{{{
#!CommitTicketReference repository="" revision="62309"
Connectors: Add `is_active` callback support to plugin registration.
Adds an optional `is_active` callable to the `plugin` definition accepted
by `WP_Connector_Registry::register()`. The callback receives no
arguments, must return a boolean, and is used by the Connectors screen to
decide whether a connector's backing plugin is currently active. When
omitted, it defaults to `__return_true`; when provided but not callable,
registration fails with a `_doing_it_wrong()` notice.
Developed in: https://github.com/WordPress/wordpress-develop/pull/11565
Reviewed by desrosj.
Merges [62288] to the 7.0 branch.
Props iamadisingh, jorgefilipecosta, mukesh27, gziolo, desrosj.
Fixes #65020.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65020#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list