Automattic\WooCommerce\Admin\Features

Features::disable()public staticWC 1.0

Disable a toggleable optional feature.

Метод класса: Features{}

Хуков нет.

Возвращает

true|false.

Использование

$result = Features::disable( $feature );
$feature(строка) (обязательный)
Feature name.

Код Features::disable() WC 8.7.0

public static function disable( $feature ) {
	$features = self::get_optional_feature_options();

	if ( isset( $features[ $feature ] ) ) {
		update_option( $features[ $feature ], 'no' );
		return true;
	}

	return false;
}