| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | use SeQura\WC\Controllers\Hooks\Payment\Interface_Payment_Controller; |
| 15 | 15 | use SeQura\WC\Controllers\Hooks\Process\Interface_Async_Process_Controller; |
| 16 | 16 | use SeQura\WC\Controllers\Hooks\Settings\Interface_Settings_Controller; |
| 17 | 17 | use SeQura\WC\Controllers\Rest\REST_Controller; |
| 18 | -use SeQura\WC\Services\Interface_Constants; | |
| 18 | +use SeQura\WC\Services\Constants\Interface_Constants; | |
| 19 | 19 | use SeQura\WC\Services\Migration\Interface_Migration_Manager; |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * The core plugin class. |
| @@ -140,8 +140,9 @@ | ||
| 140 | 140 | // Order Update. |
| 141 | 141 | \add_action( 'woocommerce_order_status_changed', array( $order_controller, 'handle_order_status_changed' ), 10, 4 ); |
| 142 | 142 | \add_action( 'woocommerce_admin_order_data_after_order_details', array( $order_controller, 'show_link_to_sequra_back_office' ) ); |
| 143 | 143 | \add_action( self::HOOK_CLEANUP_ORDERS, array( $order_controller, 'cleanup_orders' ) ); |
| 144 | + \add_action( $constants->get_hook_add_order_indexes(), array( $order_controller, 'migrate_orders_to_use_indexes' ) ); | |
| 144 | 145 | |
| 145 | 146 | // WooCommerce Compat. |
| 146 | 147 | \add_action( 'before_woocommerce_init', array( $this, 'declare_woocommerce_compatibility' ) ); |
| 147 | 148 | } |