# cartflows/1.1.0.1/classes/batch-process/class-cartflows-batch-process-elementor.php

CartFlows – Funnel Builder &amp; Checkout Plugin for WooCommerce, version 1.1.0.1. 65 lines.

- Page: https://pluginprobe.com/plugins/cartflows/1.1.0.1/code/classes/batch-process/class-cartflows-batch-process-elementor.php
- Raw: https://pluginprobe.com/plugins/cartflows/1.1.0.1/raw/classes/batch-process/class-cartflows-batch-process-elementor.php
- Modified: 2018-12-07T14:02:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cartflows/1.1.0.1/code/classes/batch-process/class-cartflows-batch-process-elementor.php#L10-L20`.

```php
<?php
/**
 * Image Background Process
 *
 * @package CartFlows
 * @since 1.0.0
 */

if ( class_exists( 'WP_Background_Process' ) ) :

	/**
	 * Image Background Process
	 *
	 * @since 1.0.0
	 */
	class CartFlows_Batch_Process_Elementor extends WP_Background_Process {

		/**
		 * Image Process
		 *
		 * @var string
		 */
		protected $action = 'cartflows_elementor_image_process';

		/**
		 * Task
		 *
		 * Override this method to perform any actions required on each
		 * queue item. Return the modified item for further processing
		 * in the next pass through. Or, return false to remove the
		 * item from the queue.
		 *
		 * @since 1.0.0
		 *
		 * @param integer $post_id Post Id.
		 * @return mixed
		 */
		protected function task( $post_id ) {

			$obj = new \Elementor\TemplateLibrary\CartFlows_Importer_Elementor();
			$obj->import_single_template( $post_id );

			return false;
		}

		/**
		 * Complete
		 *
		 * Override if applicable, but ensure that the below actions are
		 * performed, or, call parent::complete().
		 *
		 * @since 1.0.0
		 */
		protected function complete() {

			parent::complete();

			do_action( 'cartflows_import_complete' );

		}

	}

endif;

```
