PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.1
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.1
3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 2.8.17 2.8.18 All 259 releases
wpfunnels / admin / import-export / batch-processing / elementor / class-wpfnl-elementor-batch.php

class-wpfnl-elementor-batch.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 3.13.1, at admin/import-export/batch-processing/elementor/class-wpfnl-elementor-batch.php

57 lines 1018 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Elementor batch
4 *
5 * @package WPFunnels\Batch
6 */
7
8 namespace WPFunnels\Batch;
9
10 use WPFunnels\Batch\Elementor\Wpfnl_Elementor_Source;
11
12 /**
13 * Elementor batch
14 *
15 * @since 1.0.0
16 */
17 class Wpfnl_Elementor_Batch extends Wpfnl_Background_Task {
18
19 /**
20 * Image Process
21 *
22 * @var string
23 */
24 protected $action = 'wpfunnels_elementor_import_process';
25
26 /**
27 * Task
28 *
29 * @param mixed $item Elementor item.
30 * @inheritDoc
31 */
32 protected function task( $item ) {
33 $elementor_source = new Wpfnl_Elementor_Source();
34 $elementor_source->import_single_template( $item );
35 return false;
36 }
37
38 /**
39 * Complete
40 *
41 * Override if applicable, but ensure that the below actions are
42 * performed, or, call parent::complete().
43 *
44 * @since 1.0.0
45 */
46 protected function complete() {
47 // Clear all scheduled events for this specific action before completing
48 parent::complete();
49 /***
50 * Fires when import is completed
51 *
52 * @since 1.0.0
53 */
54 do_action( 'wpfunnels/wpfnl_import_complete' );
55 }
56 }
57