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.

Метод класса: McpEndpointRemoval{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код McpEndpointRemoval::handle_woocommerce_hide_mcp_endpoint_removed_notice() WC 11.3.0

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