What about setting a variable to the output of "wg()" function? this will actually call the URL supposed that it changes at every request. So, lets assume your url is "http://foo.com/bar" you can do this:
Add a text global, call it "webcall"
Add a touch action
Set touch action to "switch global", select the "webcall" global
Doing this way Kustom will call the foo.com url with date parameter at every touch and store the output in the text global (so you can even have a return code text for last call if web page returns it). The date param is required to avoid Kustom caching the call and as such not calling the web again. This is not fully synchronous, this might take 1-2 secs to happen.
You do not have to use the date parameter BUT if you call the same wg() twice in a row with the same URL it will not request that URL twice because caching is going to kick in, so you need to have an unique URL at every call to avoid caching (and this is valid also if you call this through a browser)