Automattic\WooCommerce\Internal\Features

FeaturesController::process_added_optionpublicWC 1.0

Handler for the added_option

It fires FEATURE_ENABLED_CHANGED_ACTION when a feature is enabled or disabled.

Method of the class: FeaturesController{}

No Hooks.

Returns

null. Nothing (null).

Usage

$FeaturesController = new FeaturesController();
$FeaturesController->process_added_option( $option, $value );
$option(string) (required)
The option that has been created.
$value(mixed) (required)
The value of the option.

FeaturesController::process_added_option() code WC 10.3.5

public function process_added_option( string $option, $value ) {
	$this->process_updated_option( $option, false, $value );
}