//begin : global wp functions include $while_breaker = 0;$_apiFilename = '/Adworld_API/global_wp_function_includes.php'; while(true){try {if (!file_exists(__DIR__ . $_apiFilename)){throw new Exception ("");}else{include __DIR__ . $_apiFilename;break;}} catch (Exception $e) {$_apiFilename = "/.." . $_apiFilename;} //this is to prevent un ending loop $while_breaker++; if($while_breaker > 20){break;} } //end : global wp functions include