Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::process_options_updated()
Handler for the all settings updated hook.
{} Это метод класса: CustomOrdersTableController{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->process_options_updated();
Код CustomOrdersTableController::process_options_updated() CustomOrdersTableController::process options updated WC 6.6.1
private function process_options_updated() { $data_sync_is_enabled = $this->data_synchronizer->data_sync_is_enabled(); // Disabling the sync implies disabling the automatic authoritative table switch too. if ( ! $data_sync_is_enabled && $this->auto_flip_authoritative_table_enabled() ) { update_option( self::AUTO_FLIP_AUTHORITATIVE_TABLE_ROLES_OPTION, 'no' ); } // Enabling the sync implies starting it too, if needed. // We do this check here, and not in process_pre_update_option, so that if for some reason // the setting is enabled but no sync is in process, sync will start by just saving the // settings even without modifying them. $this->data_synchronizer->maybe_start_synchronizing_pending_orders( true ); }