Convert js filter to underscores too, to match wc-admin

This commit is contained in:
Timmy Crawford 2020-03-17 16:09:37 -07:00
parent 356e5a562f
commit 5d4e3ced65
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class WC_Site_Tracking {
eventProperties.url = '<?php echo esc_html( home_url() ); ?>' eventProperties.url = '<?php echo esc_html( home_url() ); ?>'
eventProperties.products_count = '<?php echo intval( WC_Tracks::get_products_count() ); ?>'; eventProperties.products_count = '<?php echo intval( WC_Tracks::get_products_count() ); ?>';
if ( window.wp && window.wp.hooks && window.wp.hooks.applyFilters ) { 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._ui );
delete( eventProperties._ut ); delete( eventProperties._ut );
} }