WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Features::maybe_disable_features() public WC 1.0

Disable features when opting out of tracking.

{} It's a method of the class: Features{}

No Hooks.

Return

null. Nothing.

Usage

$result = Features::maybe_disable_features( $old_value, $value );
$old_value(string) (required)
Old value.
$value(string) (required)
New value.

Code of Features::maybe_disable_features() WC 5.3.0

<?php
public static function maybe_disable_features( $old_value, $value ) {
	if ( 'yes' === $value ) {
		return;
	}

	foreach ( self::get_features() as $feature ) {
		self::disable( $feature );
	}
}