woocommerce_settings_features хук-фильтрWC 1.0

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.

Где вызывается хук

FeaturesController::add_feature_settings()
woocommerce_settings_features
woocommerce/src/Internal/Features/FeaturesController.php 549
$additional_features = apply_filters( 'woocommerce_settings_features', $features );

Где используется хук в WooCommerce

woocommerce/src/Admin/Features/MultichannelMarketing/Init.php 34
add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );
woocommerce/src/Internal/Admin/SettingsNavigationFeature.php 44
add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );