Automattic\WooCommerce\Internal\Features

FeaturesController::process_added_option()privateWC 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.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->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 9.3.3

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