summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-20 10:35:19 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-20 10:35:19 +0200
commitce86dfc2bd3de67a6ac41160c28321672aa09df7 (patch)
treee9e4ed146fa978400a573ce6174a2916084bc3db
parent7fd7e7651f216527bd21faac21ca94f8066e4860 (diff)
downloadwoocommerce-taler-ce86dfc2bd3de67a6ac41160c28321672aa09df7.tar.gz
woocommerce-taler-ce86dfc2bd3de67a6ac41160c28321672aa09df7.tar.bz2
woocommerce-taler-ce86dfc2bd3de67a6ac41160c28321672aa09df7.zip
test filter
-rw-r--r--plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php9
1 files changed, 8 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 dbf7cdf..e23a2dd 100644
--- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
+++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
@@ -88,10 +88,17 @@ add_filter( 'woocommerce_payment_gateways', 'gnutaler_add_gateway_class' );
/**
* The class itself, please note that it is inside plugins_loaded action hook
*/
-
add_action( 'plugins_loaded', 'gnutaler_init_gateway_class' );
+add_filter( 'woocommerce_email_heading_customer_refunded_order', 'test_filter');
+
+function test_filter( $heading, $order_object, $email)
+{
+ return "FUNKY" . $heading;
+}
+
+
function gnutaler_init_gateway_class()
{
//Check if WooCommerce is active, if not then deactivate and show error message