PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.10.8
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.10.8
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 / gutenberg / class-wpfnl-gutenberg-batch.php

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

61 lines 1007 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Gutenberg batch
4 *
5 * @package WPFunnels\Batch\Gutenberg
6 */
7
8 namespace WPFunnels\Batch\Gutenberg;
9
10 use WPFunnels\Batch\Wpfnl_Background_Task;
11
12 /**
13 * Gutenberg batch
14 *
15 * @since 1.0.0
16 */
17 class Wpfnl_Gutenberg_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 Gutenburg batch.
31 *
32 * @inheritDoc
33 */
34 protected function task( $item ) {
35 if ( class_exists( 'Wpfnl_Gutenberg_Source' ) ) {
36 $gutenberg_source = new Wpfnl_Gutenberg_Source();
37 $gutenberg_source->import_single_template( $item );
38 }
39
40 return false;
41 }
42
43 /**
44 * Complete
45 *
46 * Override if applicable, but ensure that the below actions are
47 * performed, or, call parent::complete().
48 *
49 * @since 1.0.0
50 */
51 protected function complete() {
52 parent::complete();
53 /***
54 * Fires when import is completed
55 *
56 * @since 1.0.0
57 */
58 do_action( 'wpfunnels/wpfnl_import_complete' );
59 }
60 }
61