diff --git a/plugins/woocommerce/changelog/add-32178 b/plugins/woocommerce/changelog/add-32178 new file mode 100644 index 00000000000..867cf9d2c34 --- /dev/null +++ b/plugins/woocommerce/changelog/add-32178 @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Add filtered tracks properties to client-side tracks #32690 diff --git a/plugins/woocommerce/includes/tracks/class-wc-site-tracking.php b/plugins/woocommerce/includes/tracks/class-wc-site-tracking.php index d2bb5297688..c09c07606f7 100644 --- a/plugins/woocommerce/includes/tracks/class-wc-site-tracking.php +++ b/plugins/woocommerce/includes/tracks/class-wc-site-tracking.php @@ -21,6 +21,8 @@ class WC_Site_Tracking { * Don't track users if a filter has been applied to turn it off. * `woocommerce_apply_tracking` will be deprecated. Please use * `woocommerce_apply_user_tracking` instead. + * + * @since 3.6.0 */ if ( ! apply_filters( 'woocommerce_apply_user_tracking', true ) || ! apply_filters( 'woocommerce_apply_tracking', true ) ) { return false; @@ -62,6 +64,12 @@ class WC_Site_Tracking { * Adds the tracking function to the admin footer. */ public static function add_tracking_function() { + /** + * Add global tracks event properties. + * + * @since 6.5.0 + */ + $filtered_properties = apply_filters( 'woocommerce_tracks_event_properties', array(), false ); ?>