Merge pull request woocommerce/woocommerce-admin#2689 from woocommerce/add/feature-config-filter

add filter to feature config array
This commit is contained in:
Ron Rennick 2019-07-24 08:54:22 -03:00 committed by GitHub
commit b3423b9c3f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}