Automattic\WooCommerce\Internal\MCP

McpEndpointRemoval::handle_woocommerce_hide_mcp_endpoint_removed_notice │ public │ WC 1.0

Handle the woocommerce_hide_mcp_endpoint_removed_notice hook.

Dismissing the removal notice acts on it for the whole store, so delete the old feature option that triggers it.

Method of the class: McpEndpointRemoval{}

No Hooks.

Returns

null. Nothing (null).

Usage

$McpEndpointRemoval = new McpEndpointRemoval();
$McpEndpointRemoval->handle_woocommerce_hide_mcp_endpoint_removed_notice(): void;

McpEndpointRemoval::handle_woocommerce_hide_mcp_endpoint_removed_notice() code WC 11.3.0

public function handle_woocommerce_hide_mcp_endpoint_removed_notice(): void {
	delete_option( self::FEATURE_OPTION );
}