From afd3eda733634de118a1849545b534907bde96b3 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 3 May 2012 17:48:42 +0100 Subject: [PATCH] unhook correction --- .../integrations/google-analytics/class-wc-google-analytics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/integrations/google-analytics/class-wc-google-analytics.php b/classes/integrations/google-analytics/class-wc-google-analytics.php index 157a62a89ac..d1ad6ac63c9 100644 --- a/classes/integrations/google-analytics/class-wc-google-analytics.php +++ b/classes/integrations/google-analytics/class-wc-google-analytics.php @@ -120,7 +120,7 @@ class WC_Google_Analytics extends WC_Integration { if ( ! $tracking_id ) return; // Doing eCommerce tracking so unhook standard tracking from the footer - remove_action('wp_footer', 'woocommerce_google_tracking'); + remove_action('wp_footer', array( &$this, 'google_tracking_code' ) ); // Get the order and output tracking code $order = new WC_Order($order_id);