From f828710d378b9535cc4a8e6a1a2f7fd9293dad38 Mon Sep 17 00:00:00 2001 From: serhack Date: Fri, 14 Jul 2017 18:13:00 +0200 Subject: [PATCH] Update monero_payments.php --- monero/include/monero_payments.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index 94dec85..92599b6 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -42,6 +42,8 @@ class Monero_Gateway extends WC_Payment_Gateway //if($this->get_option('light_mode') != true){ ++ add_action('woocommerce_thankyou_' . $this->id, array( $this, 'instruction' ) )); + if (is_admin()) { /* Save Settings */ add_action('woocommerce_update_options_payment_gateways_' . $this->id, array(