PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 1.1.15
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v1.1.15
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / classes / batch-process / class-cartflows-importer-elementor-batch.php

class-cartflows-importer-elementor-batch.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 1.1.15, at classes/batch-process/class-cartflows-importer-elementor-batch.php

67 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Elementor Batch Process
4 *
5 * @package CartFlows
6 * @since 1.0.0
7 */
8
9 if ( ! class_exists( 'Cartflows_Importer_Elementor_Batch' ) && class_exists( 'WP_Background_Process' ) ) :
10
11 /**
12 * Image Background Process
13 *
14 * @since 1.1.1 Updated class name with Elementor specific.
15 *
16 * @since 1.0.0
17 */
18 class Cartflows_Importer_Elementor_Batch extends WP_Background_Process {
19
20 /**
21 * Image Process
22 *
23 * @var string
24 */
25 protected $action = 'cartflows_elementor_image_process';
26
27 /**
28 * Task
29 *
30 * Override this method to perform any actions required on each
31 * queue item. Return the modified item for further processing
32 * in the next pass through. Or, return false to remove the
33 * item from the queue.
34 *
35 * @since 1.0.0
36 *
37 * @param integer $post_id Post Id.
38 * @return mixed
39 */
40 protected function task( $post_id ) {
41
42 $obj = new \Elementor\TemplateLibrary\CartFlows_Importer_Elementor();
43 $obj->import_single_template( $post_id );
44
45 return false;
46 }
47
48 /**
49 * Complete
50 *
51 * Override if applicable, but ensure that the below actions are
52 * performed, or, call parent::complete().
53 *
54 * @since 1.0.0
55 */
56 protected function complete() {
57
58 parent::complete();
59
60 do_action( 'cartflows_import_complete' );
61
62 }
63
64 }
65
66 endif;
67