Automattic\WooCommerce\Internal\DataStores\Orders

CustomOrdersTableController::process_updated_option()privateWC 1.0

Handler for the individual setting updated hook.

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

No Hooks.

Return

null. Nothing.

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.

Code of CustomOrdersTableController::process_updated_option() WC 6.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();
	}
}