Automattic\WooCommerce\Internal\MCP

MCPAdapterProvider::maybe_initialize │ public │ WC 1.0

Deprecated since 11.3.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Formerly initialized the MCP adapter when the WooCommerce MCP feature was enabled.

Method of the class: MCPAdapterProvider{}

No Hooks.

Returns

null. Nothing (null).

Usage

$MCPAdapterProvider = new MCPAdapterProvider();
$MCPAdapterProvider->maybe_initialize(): void;

Changelog

Deprecated since 11.3.0

MCPAdapterProvider::maybe_initialize() code WC 11.3.0

public function maybe_initialize(): void {
	McpEndpointRemoval::doing_it_wrong( __METHOD__ );
}