Automattic\WooCommerce\Internal\MCP
MCPAdapterProvider::register_hooks
Register WordPress hooks for MCP adapter.
Method of the class: MCPAdapterProvider{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->register_hooks(): void;
MCPAdapterProvider::register_hooks() MCPAdapterProvider::register hooks code WC 10.3.3
private function register_hooks(): void {
// Initialize MCP server when MCP adapter is ready.
add_action( 'mcp_adapter_init', array( $this, 'initialize_mcp_server' ) );
}