PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.6.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.6.9
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / inc / background-process / class-lp-background-single-order.php

class-lp-background-single-order.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.6.9, at inc/background-process/class-lp-background-single-order.php

55 lines 978 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class LP_Background_Single_Course
4 *
5 * Single to run not schedule, run one time and done when be call
6 *
7 * @since 4.1.4
8 * @author tungnx
9 * @version 1.0.0
10 */
11 defined( 'ABSPATH' ) || exit;
12
13 if ( ! class_exists( 'LP_Background_Order' ) ) {
14 class LP_Background_Single_Order extends WP_Async_Request {
15 protected $prefix = 'lp';
16 protected $action = 'background_single_order';
17 protected static $instance;
18
19 /**
20 * @var $lp_order LP_Order
21 */
22 protected $lp_order;
23
24 /**
25 * Get params via $_POST and handle
26 */
27 protected function handle() {
28
29 }
30
31 /**
32 * Save course post data
33 *
34 * @throws Exception
35 */
36 protected function save_post() {
37
38 }
39
40 /**
41 * @return LP_Background_Single_Order
42 */
43 public static function instance(): self {
44 if ( is_null( self::$instance ) ) {
45 self::$instance = new self();
46 }
47
48 return self::$instance;
49 }
50 }
51
52 // Must run instance to register ajax.
53 LP_Background_Single_Order::instance();
54 }
55