PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 / Filters / class-lp-course-json-filter.php

class-lp-course-json-filter.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.8, at inc/Filters/class-lp-course-json-filter.php

94 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class LP_Course_JSON_Filter
4 *
5 * @author ThimPress
6 * @package LearnPress/Classes/Filters
7 * @version 4.2.6.9
8 */
9
10 /**
11 * Prevent loading this file directly
12 */
13 defined( 'ABSPATH' ) || exit();
14
15 class LP_Course_JSON_Filter extends LP_Filter {
16 const COL_ID = 'ID';
17 const COL_POST_AUTHOR = 'post_author';
18 const COL_POST_DATE_GMT = 'post_date_gmt';
19 const COL_POST_CONTENT = 'post_content';
20 const COL_POST_TITLE = 'post_title';
21 const COL_POST_STATUS = 'post_status';
22 const COL_POST_NAME = 'post_name';
23 const COL_MENU_ORDER = 'menu_order';
24 const COL_JSON = 'json';
25 const COL_PRICE_TO_SORT = 'price_to_sort';
26 const COL_IS_SALE = 'is_sale';
27 const COL_LANG = 'lang'; // For multiple languages, wpml or polylang will store here.
28 /**
29 * @var string[]
30 */
31 public $all_fields = [
32 self::COL_ID,
33 self::COL_POST_AUTHOR,
34 self::COL_POST_DATE_GMT,
35 self::COL_POST_CONTENT,
36 self::COL_POST_TITLE,
37 self::COL_POST_STATUS,
38 self::COL_POST_NAME,
39 self::COL_MENU_ORDER,
40 self::COL_JSON,
41 self::COL_PRICE_TO_SORT,
42 self::COL_IS_SALE,
43 self::COL_LANG,
44 ];
45 /**
46 * @var int
47 */
48 public $ID;
49 /**
50 * @var string
51 */
52 public $post_title = '';
53 /**
54 * @var string
55 */
56 public $post_name = '';
57 /**
58 * @var string[]
59 */
60 public $post_status = [];
61 /**
62 * @var int
63 */
64 public $post_author = 0;
65 /**
66 * @var int[]
67 */
68 public $post_authors = [];
69 /**
70 * @var array
71 */
72 public $term_ids = [];
73 /**
74 * @var array
75 */
76 public $tag_ids = [];
77 /**
78 * @var array
79 */
80 public $ids = [];
81 /**
82 * @var string
83 */
84 public $taxonomy = 'course_category';
85 /**
86 * @var string
87 */
88 public $lang = '';
89 /**
90 * @var int
91 */
92 public $is_sale = 0;
93 }
94