woocommerce_admin_get_feature_config

woocommerce_admin_get_feature_config

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_admin_get_feature_config') is found 2 times:

  • /src/Internal/Admin/FeaturePlugin.php line 208
    		 * Get additional feature config
    		 *
    		 * @since 6.5.0
    		 */
    		$feature_config = apply_filters( 'woocommerce_admin_get_feature_config', wc_admin_get_feature_config() );
    		$features       = array_keys( array_filter( $feature_config ) );
    		return $features;
    	}
    
    	/**
    	 * Define constant if not already set.
    
  • /src/Internal/Admin/SystemStatusReport.php line 76
    		 * Filter the admin feature configs.
    		 *
    		 * @since 6.5.0
    		 */
    		$features          = apply_filters( 'woocommerce_admin_get_feature_config', wc_admin_get_feature_config() );
    		$enabled_features  = array_filter( $features );
    		$disabled_features = array_filter(
    			$features,
    			function( $feature ) {
    				return empty( $feature );
    			}