# sync-basalam/1.10.19/templates/notifications/HttpBlock.php

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

- Page: https://pluginprobe.com/plugins/sync-basalam/1.10.19/code/templates/notifications/HttpBlock.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.10.19/raw/templates/notifications/HttpBlock.php
- Modified: 2026-09-17T09:40:56+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.19/code/templates/notifications/HttpBlock.php#L10-L20`.

```php
<?php
defined('ABSPATH') || exit;
use SyncBasalam\Services\CheckHttpBlockService;

$syncBasalamHttpBlock =  syncBasalamContainer()->get(CheckHttpBlockService::class)->SyncBasalamHttpBlock();
if (!$syncBasalamHttpBlock) return;

echo '<div class="notice notice-error basalam-p" style="text-align:right;">';
echo '<p>درخواست های HTTP افزونه ووسلام محدود شده اند.</p>';
echo '<p>برای عملکرد صحیح ووسلام، دامنه‌های زیر باید به <code>WP_ACCESSIBLE_HOSTS</code> در فایل <code>wp-config.php</code> اضافه شوند:  <code>' . esc_html(implode(',', $syncBasalamHttpBlock)) . '</code></p>';
echo '<p>در غیر این صورت هیچ همگام سازی با باسلام صورت نخواهد گرفت.</p>';
echo '</div>';

```
