Automattic\WooCommerce\Admin\Features

Features::disable()public staticWC 1.0

Disable a toggleable optional feature.

Method of the class: Features{}

No Hooks.

Return

true|false.

Usage

$result = Features::disable( $feature );
$feature(string) (required)
Feature name.

Features::disable() code WC 7.1.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;
}