Automattic\WooCommerce\Internal\MCP
McpEndpointRemoval::is_mcp_adapter_available
Check whether an MCP adapter is loaded, from the MCP Adapter plugin or any other plugin.
Method of the class: McpEndpointRemoval{}
No Hooks.
Returns
bool.
Usage
$result = McpEndpointRemoval::is_mcp_adapter_available(): bool;
McpEndpointRemoval::is_mcp_adapter_available() McpEndpointRemoval::is mcp adapter available code WC 11.3.0
private static function is_mcp_adapter_available(): bool {
return (bool) wc_get_container()->get( LegacyProxy::class )->call_function( 'class_exists', 'WP\MCP\Core\McpAdapter' );
}