From 5803b49f41bc43e2217c3fc4dcb1b2650ebbb7d0 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 23 Jul 2019 10:54:27 -0300 Subject: [PATCH] add filter to feature config array --- plugins/woocommerce-admin/woocommerce-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/woocommerce-admin.php b/plugins/woocommerce-admin/woocommerce-admin.php index d57981bc775..d4179000c15 100755 --- a/plugins/woocommerce-admin/woocommerce-admin.php +++ b/plugins/woocommerce-admin/woocommerce-admin.php @@ -296,7 +296,7 @@ class WC_Admin_Feature_Plugin { if ( ! function_exists( 'wc_admin_get_feature_config' ) ) { require_once WC_ADMIN_ABSPATH . '/includes/feature-config.php'; } - $feature_config = wc_admin_get_feature_config(); + $feature_config = apply_filters( 'wc_admin_get_feature_config', wc_admin_get_feature_config() ); $features = array_keys( array_filter( $feature_config ) ); return $features; }