# sync-basalam/1.10.9/includes/Admin/Product/Services/ProductDisconnectService.php

ووسلام – همگام سازی ووکامرس و باسلام, version 1.10.9. 23 lines.

- Page: https://pluginprobe.com/plugins/sync-basalam/1.10.9/code/includes/Admin/Product/Services/ProductDisconnectService.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.10.9/raw/includes/Admin/Product/Services/ProductDisconnectService.php
- Modified: 2026-08-16T11:47:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sync-basalam/1.10.9/code/includes/Admin/Product/Services/ProductDisconnectService.php#L10-L20`.

```php
<?php

namespace SyncBasalam\Admin\Product\Services;

use SyncBasalam\Services\Products\ProductConnection;

defined('ABSPATH') || exit;

class ProductDisconnectService
{
    public function disconnectSelected(array $productIds): void
    {
        foreach ($productIds as $productId) {
            $this->disconnectSingle((int) $productId);
        }
    }

    private function disconnectSingle(int $productId): void
    {
        ProductConnection::purge($productId);
    }
}

```
