Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::process_sync_finished()
Handler for the synchronization finished hook. Here we switch the authoritative table if needed.
Метод класса: CustomOrdersTableController{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->process_sync_finished();
Код CustomOrdersTableController::process_sync_finished() CustomOrdersTableController::process sync finished WC 7.3.0
private function process_sync_finished() { if ( ! $this->auto_flip_authoritative_table_enabled() ) { return; } update_option( self::AUTO_FLIP_AUTHORITATIVE_TABLE_ROLES_OPTION, 'no' ); if ( $this->custom_orders_table_usage_is_enabled() ) { update_option( self::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION, 'no' ); } else { update_option( self::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION, 'yes' ); } }