Replace file_get_contents with wp_remote_request()