Automattic\WooCommerce\Internal\DataStores\Orders

CustomOrdersTableController::process_updated_option()privateWC 1.0

Handler for the individual setting updated hook.

Method of the class: CustomOrdersTableController{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->process_updated_option( $option, $old_value, $value );
$option(string) (required)
Setting name.
$old_value(mixed) (required)
Old value of the setting.
$value(mixed) (required)
New value of the setting.

CustomOrdersTableController::process_updated_option() code WC 8.6.1

private function process_updated_option( $option, $old_value, $value ) {
	if ( DataSynchronizer::ORDERS_DATA_SYNC_ENABLED_OPTION === $option && 'no' === $value ) {
		$this->data_synchronizer->cleanup_synchronization_state();
	}
}