-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser-roles-and-capabilities.php
56 lines (43 loc) · 2.22 KB
/
user-roles-and-capabilities.php
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
<?php
/*
Plugin Name: User Roles and Capabilities
Plugin URI: http://solvease.com
Description: manage user roles and capabilities. Create new roles and delete existing roles. Using this plugin you will not be able to modify any capabilities for administrator user role. WordPress built in roles cant be deleted.
Version: 1.2.1
Author: mahabub
Author URI: http://solvease.com
License: GPLv2 or later
*/
/* Copyright 2015 Mahabub (email: mahabub at solvease dot com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
if (!defined('WPINC')) {
die;
}
require_once plugin_dir_path(__FILE__) . 'includes/class-solvease-wp-roles-capabilities-caps.php';
function activate_solvease_roles_capabilities() {
require_once plugin_dir_path(__FILE__) . 'includes/class-solvease-wp-roles-capabilities-activator.php';
Solvease_Roles_Capabilities_Activator::activate();
}
function deactivate_solvease_roles_capabilities() {
require_once plugin_dir_path(__FILE__) . 'includes/class-solvease-wp-roles-capabilities-deactivator.php';
Solvease_Roles_Capabilities_Deactivator::deactivate();
}
register_activation_hook(__FILE__, 'activate_solvease_roles_capabilities');
register_deactivation_hook(__FILE__, 'deactivate_solvease_roles_capabilities');
require_once plugin_dir_path(__FILE__) . "includes/class-solvease-wp-roles-capabilities.php";
function execute_solvease_roles_capabilities() {
$solvease_roles_capabilities = new Solvease_Roles_Capabilities();
$solvease_roles_capabilities->execute();
}
execute_solvease_roles_capabilities();