PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7.3.1
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7.3.1
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.7.3.1, at inc/background-process/class-lp-background-single-order.php

54 lines 950 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 LP_Async_Request {
15 protected $action = 'background_single_order';
16 protected static $instance;
17
18 /**
19 * @var $lp_order LP_Order
20 */
21 protected $lp_order;
22
23 /**
24 * Get params via $_POST and handle
25 */
26 protected function handle() {
27
28 }
29
30 /**
31 * Save course post data
32 *
33 * @throws Exception
34 */
35 protected function save_post() {
36
37 }
38
39 /**
40 * @return LP_Background_Single_Order
41 */
42 public static function instance(): self {
43 if ( is_null( self::$instance ) ) {
44 self::$instance = new self();
45 }
46
47 return self::$instance;
48 }
49 }
50
51 // Must run instance to register ajax.
52 LP_Background_Single_Order::instance();
53 }
54