在更新货币汇率时执行。返回所有支持的自动更新货币
参数
变量 | 类型 | 注意 |
---|---|---|
USD | float | |
GBP | float |
响应
一组键 -> 值对,用于定义或覆盖额外的汇率。汇率应适合欧元货币。
示例代码
<?php
//Return an exchange rate for the XBT currency
add_hook('FetchCurrencyExchangeRates', 1, function($vars) {
//Code here to fetch the the current exchange rate relative to EUR
//Return exchange rate relative to 1 EUR
return ['XBT' => 927.121,];
});
相关用法
- PHP FilesystemIterator __construct()用法及代码示例
- PHP WHMCS FraudCheckAwaitingUserInput用法及代码示例
- PHP WHMCS FraudOrder用法及代码示例
- PHP FilesystemIterator getFlags()用法及代码示例
- PHP FilesystemIterator next()用法及代码示例
- PHP WHMCS FormatDateTimeForClientAreaOutput用法及代码示例
- PHP FrenchToJD()用法及代码示例
- PHP WHMCS FileDownload用法及代码示例
- PHP FilesystemIterator rewind()用法及代码示例
- PHP FilesystemIterator key()用法及代码示例
- PHP WHMCS FraudCheckFailed用法及代码示例
- PHP WHMCS FraudCheckPassed用法及代码示例
- PHP FilesystemIterator current()用法及代码示例
- PHP FilesystemIterator setFlags()用法及代码示例
- PHP WHMCS FormatDateForClientAreaOutput用法及代码示例
- PHP WHMCS ClientAreaPageDownloads用法及代码示例
- PHP Ds\Map isEmpty()用法及代码示例
- PHP PHPUnit assertIsNotFloat()用法及代码示例
- PHP disk_total_space()用法及代码示例
- PHP ReflectionClass getTraitAliases()用法及代码示例
- PHP hash_hmac()用法及代码示例
- PHP String wordwrap()用法及代码示例
- PHP XMLWriter endPi()用法及代码示例
- PHP SimpleXMLElement children()用法及代码示例
- PHP IntlCalendar getTimeZone()用法及代码示例
注:本文由纯净天空筛选整理自whmcs.com大神的英文原创作品 FetchCurrencyExchangeRates。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。