Merge pull request woocommerce/woocommerce-admin#2689 from woocommerce/add/feature-config-filter
add filter to feature config array
This commit is contained in:
commit
b3423b9c3f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue