wp_get_connectors()
Retrieves all registered connectors.
No Hooks.
Returns
Array. Connector settings keyed by connector ID.
Usage
wp_get_connectors(): array;
Notes
Changelog
| Since 7.0.0 | Introduced. |
wp_get_connectors() wp get connectors code WP 7.0
function wp_get_connectors(): array {
$registry = WP_Connector_Registry::get_instance();
if ( null === $registry ) {
return array();
}
return $registry->get_all_registered();
}