Merge pull request #28627 from woocommerce/update/tracks/global-props

Tracks: Add woo version as global track prop.
This commit is contained in:
Roy Ho 2021-02-11 05:48:25 -08:00 committed by GitHub
commit 2641bb7b6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class WC_Tracks {
'blog_lang' => get_user_locale( $user_id ),
'blog_id' => class_exists( 'Jetpack_Options' ) ? Jetpack_Options::get_option( 'id' ) : null,
'products_count' => self::get_products_count(),
'wc_version' => WC()->version,
);
set_transient( 'wc_tracks_blog_details', $blog_details, DAY_IN_SECONDS );
}