You are here

public static function RemoteCalls::check in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 9.1.x src/lib/Cleantalk/Common/RemoteCalls.php \Cleantalk\Common\RemoteCalls::check()

* Checking if the current request is the Remote Call * *

Return value

bool

1 call to RemoteCalls::check()
FirewallUpdater::update in src/lib/Cleantalk/Common/Firewall/FirewallUpdater.php

File

src/lib/Cleantalk/Common/RemoteCalls.php, line 60

Class

RemoteCalls

Namespace

Cleantalk\Common

Code

public static function check() {
  return Get::get('spbc_remote_call_token') && Get::get('spbc_remote_call_action') && Get::get('plugin_name') && in_array(Get::get('plugin_name'), array(
    'antispam',
    'anti-spam',
    'apbct',
  ));
}