wc_migrator_batch_processed

wc_migrator_batch_processed

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.10.3.4

do_action('wc_migrator_batch_processed') is found 1 times:

  • /src/Internal/CLI/Migrator/Core/ProductsController.php line 676
    			 * @param array $batch_results   Results from the batch import.
    			 * @param array $source_data     Source platform data for the batch.
    			 * @param array $mapped_products Mapped WooCommerce data for the batch.
    			 */
    			do_action( 'wc_migrator_batch_processed', $batch_results, $source_data_batch, $mapped_products );
    
    			$this->log_batch_results( $batch_results );
    			$processed_count = $batch_results['stats']['successful'];
    
    			if ( $processed_count > 0 && ! $this->parsed_args['dry_run'] ) {
    				$current_count = get_option( 'wc_migrator_products_count', 0 );