-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WooCommerce Analytics: make it available as module (#15187)
* WooCommerce Analytics: add as module * Stop loading Woo Analytics all the time * Update module headings to include new module info Also update the module's support doc link * Do not show the module as available unless running Woo 3+ * Add new file to whitelist * Update introduced version to 8.4 release to trigger autoactivation
- Loading branch information
Showing
6 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Module Name: WooCommerce Analytics | ||
* Module Description: Enhanced analytics for WooCommerce and Jetpack users. | ||
* Sort Order: 13 | ||
* First Introduced: 8.4 | ||
* Requires Connection: Yes | ||
* Auto Activate: Yes | ||
* Module Tags: Other, Recommended | ||
* Feature: Engagement | ||
* Additional Search Queries: woocommerce, analytics, stats, statistics, tracking, analytics, views | ||
* | ||
* @package Jetpack | ||
*/ | ||
|
||
/** | ||
* Load module functionality. | ||
*/ | ||
function jetpack_load_woocommerce_analytics() { | ||
require_once dirname( __FILE__ ) . '/woocommerce-analytics/wp-woocommerce-analytics.php'; | ||
} | ||
jetpack_load_woocommerce_analytics(); |