[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
Thu Apr 30 12:16:36 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  |     Focuses:
-----------------------------------------+-------------------------------
Changes (by jorgefilipecosta):

 * owner:  (none) => jorgefilipecosta
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"62288" 62288]:
 {{{
 #!CommitTicketReference repository="" revision="62288"
 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

 Props iamadisingh, jorgefilipecosta, mukesh27, gziolo.
 Fixes #65020.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65020#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list