What method to call to update exchange rate?
-
Hello, I am working with a currency that has inaccurate in the current available aggregates, the rates they’re using are the official ones, while in reality the real market rate is one that is controlled by the black market, so what I did is, I created a function that reads the rate off of a 3rd party site, I read through documentations, and could not find a method that I could call to update exchange rate for a currency.
Currently I’m doing this, but I’m sure there’s a better way:
$current = get_option('woocs'); $current['SYP']['rate'] = $rate; update_option('woocs', $current);
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘What method to call to update exchange rate?’ is closed to new replies.