diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-16 13:11:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-16 13:11:36 +0200 |
commit | b454221571b3535e2ded0d420dfe50c63b080575 (patch) | |
tree | 164b501a4b77951e3bad1fd326ed67458deb0cd5 | |
parent | a20e52199a20833c1a25610a44dbb2a3c9313a6b (diff) | |
download | woocommerce-taler-b454221571b3535e2ded0d420dfe50c63b080575.tar.gz woocommerce-taler-b454221571b3535e2ded0d420dfe50c63b080575.tar.bz2 woocommerce-taler-b454221571b3535e2ded0d420dfe50c63b080575.zip |
try to fix callback initialization
-rw-r--r-- | plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php index 0da45fc..993c634 100644 --- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php +++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php @@ -203,7 +203,7 @@ function gnutaler_init_gateway_class() $this->Payment_url = $this->get_option( 'Payment_url' ); $this->Order_text = $this->get_option( 'Order_text' ); - add_action( 'woocommerce_api_'. strtolower( get_class($this) ), array( $this, 'callback_handler' ) ); + add_action( 'woocommerce_api_callback', array( $this, 'callback_handler' ) ); // This action hook saves the settings add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) ); |