woocommerce_admin_get_feature_config

woocommerce_admin_get_feature_config

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('woocommerce_admin_get_feature_config') is found 2 times:

  • /src/Internal/Admin/FeaturePlugin.php line 208
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
         * 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
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    * 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 );
        }

See this hook used in plugins: