Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::process_updated_option()
Handler for the individual setting updated hook.
Method of the class: CustomOrdersTableController{}
No Hooks.
Return
null
. Ничего (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() CustomOrdersTableController::process updated option code WC 8.0.2
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(); } }