PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.12.2
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.12.2
3.13.3 3.13.2 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 All 261 releases
wpfunnels / admin / import-export / batch-processing / oxygen / class-wpfnl-oxygen-batch.php

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

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