added make_api_call to functions.php