private static function getClient() { $client = ClientFactory::getInstance(); if (!$client->isCustom() && (function_exists("wp_remote_get") && $client->getType() != ClientFactory::WP_CLIENT)) { $client->setToWP(); } return $client; }