Automattic\WooCommerce\Internal\MCP
McpEndpointRemoval::handle_woocommerce_hide_mcp_endpoint_removed_notice
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() 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 );
}