This commit is contained in:
Ron Rennick 2019-12-04 19:44:49 -04:00 committed by GitHub
parent cd6c81ae22
commit 0c5c0f1571
1 changed files with 9 additions and 0 deletions

View File

@ -54,6 +54,15 @@ class FeaturePlugin {
* Init the feature plugin, only if we can detect both Gutenberg and WooCommerce.
*/
public function init() {
/**
* Filter allowing WooCommerce Admin to be disabled.
*
* @param bool $disabled False.
*/
if ( apply_filters( 'woocommerce_analytics_disabled', false ) ) {
return;
}
$this->define_constants();
require_once WC_ADMIN_ABSPATH . '/includes/core-functions.php';