woocommerce_migrate_country_states_for_orders_batch_size

woocommerce_migrate_country_states_for_orders_batch_size

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_migrate_country_states_for_orders_batch_size') is found 1 times:

  • /src/Database/Migrations/MigrationHelper.php line 180
    		 * @param array  $old_to_new_states_mapping Associative array of old to new state codes.
    		 *
    		 * @since 7.2.0
    		 */
    		$limit      = apply_filters( 'woocommerce_migrate_country_states_for_orders_batch_size', 100, $country_code, $old_to_new_states_mapping );
    		$cot_exists = wc_get_container()->get( DataSynchronizer::class )->check_orders_table_exists();
    
    		// phpcs:disable WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    
    		foreach ( $old_to_new_states_mapping as $old_state => $new_state ) {
    			if ( $cot_exists ) {