PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 1.1.1
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v1.1.1
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-beaver-builder-batch.php

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

64 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 * Beaver Builder Batch Process
4 *
5 * @package CartFlows
6 * @since 1.1.1
7 */
8
9 if ( ! class_exists( 'Cartflows_Importer_Beaver_Builder_Batch' ) && class_exists( 'WP_Background_Process' ) ) :
10
11 /**
12 * Image Background Process
13 *
14 * @since 1.1.1
15 */
16 class Cartflows_Importer_Beaver_Builder_Batch extends WP_Background_Process {
17
18 /**
19 * Image Process
20 *
21 * @var string
22 */
23 protected $action = 'cartflows_beaver_builder_image_process';
24
25 /**
26 * Task
27 *
28 * Override this method to perform any actions required on each
29 * queue item. Return the modified item for further processing
30 * in the next pass through. Or, return false to remove the
31 * item from the queue.
32 *
33 * @since 1.1.1
34 *
35 * @param integer $post_id Post Id.
36 * @return mixed
37 */
38 protected function task( $post_id ) {
39
40 CartFlows_Importer_Beaver_Builder::get_instance()->import_single_post( $post_id );
41
42 return false;
43 }
44
45 /**
46 * Complete
47 *
48 * Override if applicable, but ensure that the below actions are
49 * performed, or, call parent::complete().
50 *
51 * @since 1.1.1
52 */
53 protected function complete() {
54
55 parent::complete();
56
57 do_action( 'cartflows_import_complete' );
58
59 }
60
61 }
62
63 endif;
64