PluginProbe
Groups – Memberships and Access Control / 3.9.0
Groups – Memberships and Access Control v3.9.0
4.6.0 4.5.0 4.4.0 4.3.0 trunk 1.0.0-beta-1 1.0.0-beta-2 1.0.0-beta-3 1.0.0-beta-3b 1.0.0-beta-3c 1.0.0-beta-3d 1.1.4 1.1.5 1.10.0 1.10.1 1.10.2 1.10.3 1.11.0 1.11.1 1.11.2 1.11.3 1.12.0 1.13.0 1.13.1 1.2.0 All 129 releases
groups / lib / core / constants.php

constants.php in Groups – Memberships and Access Control 3.9.0, at lib/core/constants.php

140 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * constants.php
4 *
5 * Copyright (c) "kento" Karim Rahimpur www.itthinx.com
6 *
7 * This code is released under the GNU General Public License.
8 * See COPYRIGHT.txt and LICENSE.txt.
9 *
10 * This code is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * This header and all notices must be kept intact.
16 *
17 * @author Karim Rahimpur
18 * @package groups
19 * @since groups 1.0.0
20 */
21
22 if ( !defined( 'ABSPATH' ) ) {
23 exit;
24 }
25
26 /**
27 * @var string GROUPS_DEFAULT_VERSION plugin version dummy
28 */
29 define( 'GROUPS_DEFAULT_VERSION', '1.0.0' );
30
31 /**
32 * Do NOT remove this constant.
33 *
34 * @var string GROUPS_PLUGIN_DOMAIN plugin domain
35 */
36 define( 'GROUPS_PLUGIN_DOMAIN', 'groups' );
37
38 /**
39 * @var string GROUPS_PLUGIN_DIR plugin directory on the server
40 */
41 define( 'GROUPS_PLUGIN_DIR', GROUPS_CORE_DIR );
42
43 /**
44 * @var string GROUPS_PLUGIN_URL plugin url
45 */
46 define( 'GROUPS_PLUGIN_URL', trailingslashit( GROUPS_CORE_URL ) );
47
48 /**
49 * @var string GROUPS_TP groups table prefix
50 */
51 define( 'GROUPS_TP', 'groups_' );
52
53 // administrative capabilities
54
55 /**
56 * @var string GROUPS_ACCESS_GROUPS grants access to the groups section
57 */
58 define( 'GROUPS_ACCESS_GROUPS', 'groups_access' );
59
60 /**
61 * @var string GROUPS_ADMINISTER_GROUPS grants CRUD for groups (CRUD)
62 */
63 define( 'GROUPS_ADMINISTER_GROUPS', 'groups_admin_groups');
64
65 /**
66 * @var string GROUPS_ADMINISTER_OPTIONS grants to administer plugin options
67 */
68 define( 'GROUPS_ADMINISTER_OPTIONS', 'groups_admin_options');
69
70 /**
71 * @var string GROUPS_RESTRICT_ACCESS grants permission to restrict access on posts etc.
72 */
73 define( 'GROUPS_RESTRICT_ACCESS', 'groups_restrict_access' );
74
75 /**
76 * @var string GROUPS_ADMIN_GROUPS_NONCE admin nonce
77 */
78 define( 'GROUPS_ADMIN_GROUPS_NONCE', 'groups-admin-nonce' );
79
80 /**
81 * @var string GROUPS_ADMINISTRATOR_ACCESS_OVERRIDE admin override option
82 *
83 * @deprecated since 2.1.1
84 */
85 define( 'GROUPS_ADMINISTRATOR_ACCESS_OVERRIDE', 'groups-admin-override' );
86
87 /**
88 * @var string GROUPS_ADMINISTRATOR_ACCESS_OVERRIDE_DEFAULT admin override option default setting
89 *
90 * @deprecated since 2.1.1
91 */
92 define( 'GROUPS_ADMINISTRATOR_ACCESS_OVERRIDE_DEFAULT', false );
93
94 /**
95 * @var string GROUPS_READ_POST_CAPABILITIES read post capabilities option
96 */
97 define( 'GROUPS_READ_POST_CAPABILITIES', 'groups-read-post-capabilities' );
98
99 /**
100 * Tree view option
101 *
102 * @var string GROUPS_SHOW_TREE_VIEW
103 */
104 define( 'GROUPS_SHOW_TREE_VIEW', 'groups-show-tree-view' );
105
106 /**
107 * Tree view option default.
108 *
109 * @var boolean GROUPS_SHOW_TREE_VIEW_DEFAULT
110 */
111 define( 'GROUPS_SHOW_TREE_VIEW_DEFAULT', false );
112
113 /**
114 * Option to show groups info in the user profile.
115 *
116 * @var string GROUPS_SHOW_IN_USER_PROFILE
117 */
118 define( 'GROUPS_SHOW_IN_USER_PROFILE', 'groups-show-in-user-profile' );
119
120 /**
121 * Default for showing groups in user profiles.
122 *
123 * @var boolean GROUPS_SHOW_IN_USER_PROFILE_DEFAULT
124 */
125 define( 'GROUPS_SHOW_IN_USER_PROFILE_DEFAULT', true );
126
127 /**
128 * Whether legacy functions should be supported.
129 *
130 * @var string GROUPS_LEGACY_ENABLE
131 */
132 define( 'GROUPS_LEGACY_ENABLE', 'groups-legacy-enable' );
133
134 /**
135 * Default value for legacy support.
136 *
137 * @var boolean GROUPS_LEGACY_ENABLE_DEFAULT
138 */
139 define( 'GROUPS_LEGACY_ENABLE_DEFAULT', false );
140