From 5d4e3ced656c2b58f63ac3f79a55868e7459f527 Mon Sep 17 00:00:00 2001 From: Timmy Crawford Date: Tue, 17 Mar 2020 16:09:37 -0700 Subject: [PATCH] Convert js filter to underscores too, to match wc-admin --- includes/tracks/class-wc-site-tracking.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/tracks/class-wc-site-tracking.php b/includes/tracks/class-wc-site-tracking.php index d2550917d6f..08183e749d3 100644 --- a/includes/tracks/class-wc-site-tracking.php +++ b/includes/tracks/class-wc-site-tracking.php @@ -71,7 +71,7 @@ class WC_Site_Tracking { eventProperties.url = '' eventProperties.products_count = ''; if ( window.wp && window.wp.hooks && window.wp.hooks.applyFilters ) { - eventProperties = window.wp.hooks.applyFilters( 'woocommerceTracksEventProperties', eventProperties, eventName ); + eventProperties = window.wp.hooks.applyFilters( 'woocommerce_tracks_client_event_properties', eventProperties, eventName ); delete( eventProperties._ui ); delete( eventProperties._ut ); }