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(