mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
Update class-monero-gateway.php
This commit is contained in:
parent
a3e10ab36f
commit
25416473eb
1 changed files with 4 additions and 0 deletions
|
@ -87,6 +87,10 @@ class Monero_Gateway extends WC_Payment_Gateway
|
|||
$explorer_url = self::$testnet ? MONERO_GATEWAY_TESTNET_EXPLORER_URL : MONERO_GATEWAY_MAINNET_EXPLORER_URL;
|
||||
defined('MONERO_GATEWAY_EXPLORER_URL') || define('MONERO_GATEWAY_EXPLORER_URL', $explorer_url);
|
||||
|
||||
// Add the currency of the shop to $currencies array. Needed for do_update_event() function
|
||||
$currency_shop = get_woocommerce_currency();
|
||||
array_push(self::$currencies, $currency_shop);
|
||||
|
||||
if($add_action)
|
||||
add_action('woocommerce_update_options_payment_gateways_'.$this->id, array($this, 'process_admin_options'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue