PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.7
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 4.2.1 All 138 releases
learnpress / inc / Filters / UserFilter.php

UserFilter.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.7, at inc/Filters/UserFilter.php

82 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 namespace LearnPress\Filters;
4
5 defined( 'ABSPATH' ) || exit();
6
7 /**
8 * Class UserFilter
9 *
10 * Filter query for users table
11 *
12 * @since 4.3.6
13 * @version 1.0.0
14 */
15 class UserFilter extends FilterBase {
16 const COL_ID = 'ID';
17 const COL_USER_LOGIN = 'user_login';
18 const COL_USER_NICENAME = 'user_nicename';
19 const COL_USER_EMAIL = 'user_email';
20 const COL_USER_URL = 'user_url';
21 const COL_DISPLAY_NAME = 'display_name';
22 const COL_USER_STATUS = 'user_status';
23
24 /**
25 * @var string[] List of fields can be filtered.
26 */
27 public array $all_fields = [
28 self::COL_ID,
29 self::COL_USER_LOGIN,
30 self::COL_USER_NICENAME,
31 self::COL_USER_EMAIL,
32 self::COL_DISPLAY_NAME,
33 self::COL_USER_URL,
34 self::COL_USER_STATUS,
35 ];
36
37 /**
38 * @var int User id.
39 */
40 public $ID;
41
42 /**
43 * @var int[] List of user ids.
44 */
45 public $ids = [];
46
47 /**
48 * @var string User nice name.
49 */
50 public $user_nicename;
51
52 /**
53 * @var string Email.
54 */
55 public $user_email;
56
57 /**
58 * @var string User login.
59 */
60 public $user_login;
61
62 /**
63 * @var string Display name.
64 */
65 public $display_name;
66
67 /**
68 * @var string User url.
69 */
70 public $user_url;
71
72 /**
73 * @var int User status.
74 */
75 public $user_status;
76
77 /**
78 * @var string
79 */
80 public $field_count = self::COL_ID;
81 }
82