-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-ultimo-support-agents.php
More file actions
90 lines (73 loc) · 2.52 KB
/
wp-ultimo-support-agents.php
File metadata and controls
90 lines (73 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/**
* Plugin Name: UC Spaces: Support Agents
* Description: Create and manage a special kind of UC user that has access to the Network Admin without being a super-admin (Support Agents), complete with granular permission controls.
* Plugin URI: https://ucspaces.com/addons
* Text Domain: wp-ultimo-support-agents
* Version: 1.0.8
* Author: UC Dev Team
* Network: true
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Domain Path: /lang
*
* WP Ultimo Support Agents is distributed under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* WP Ultimo Support Agents is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WP Ultimo Support Agents. If not, see <http://www.gnu.org/licenses/>.
*
* @author Arindo Duque and NextPress
* @category Core
* @package WP_Ultimo_Support_Agents
* @version 1.0.8
*/
// Exit if accessed directly
defined('ABSPATH') || exit;
if (!defined('WP_ULTIMO_SUPPORT_AGENTS_PLUGIN_FILE')) {
define('WP_ULTIMO_SUPPORT_AGENTS_PLUGIN_FILE', __FILE__);
} // end if;
/**
* Require core file dependencies
*/
require_once __DIR__ . '/constants.php';
require_once __DIR__ . '/dependencies/autoload.php';
require_once __DIR__ . '/inc/class-autoloader.php';
require_once __DIR__ . '/inc/traits/trait-singleton.php';
/**
* Setup autoloader
*/
WP_Ultimo_Support_Agents\Autoloader::init();
/**
* Setup activation/deactivation hooks
*/
WP_Ultimo_Support_Agents\Hooks::init();
/**
* Initializes the WP Ultimo Support Agents class
*
* This function returns the WP_Ultimo_Support_Agents class singleton, and
* should be used to avoid declaring globals.
*
* @since 1.0.0
* @return WP_Ultimo_Support_Agents
*/
function WP_Ultimo_Support_Agents() { // phpcs:ignore
return WP_Ultimo_Support_Agents::get_instance();
} // end WP_Ultimo_Support_Agents;
// Initialize and set to global for back-compat
add_action('plugins_loaded', 'wp_ultimo_support_agents_init', 5);
/**
* Wait before we have WP Ultimo available before hooking into it.
*
* @since 1.0.0
* @return void
*/
function wp_ultimo_support_agents_init() {
$GLOBALS['WP_Ultimo_Support_Agents'] = WP_Ultimo_Support_Agents();
} // end wp_ultimo_support_agents_init;