woocommerce_settings_features
Filter allowing to add additional settings to the WooCommerce Advanced - Features settings page.
Использование
add_filter( 'woocommerce_settings_features', 'wp_kama_woocommerce_settings_features_filter' ); /** * Function for `woocommerce_settings_features` filter-hook. * * @param bool $disabled False. * * @return bool */ function wp_kama_woocommerce_settings_features_filter( $disabled ){ // filter... return $disabled; }
- $disabled(true|false)
- False.
Где вызывается хук
woocommerce_settings_features
woocommerce/src/Internal/Features/FeaturesController.php 728
$feature_settings = apply_filters( 'woocommerce_settings_features', $feature_settings );
Где используется хук в WooCommerce
woocommerce/src/Internal/Admin/SettingsNavigationFeature.php 44
add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );