forked from carl-alberto/wp-simple-custom-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple-custom-admin.php
executable file
·49 lines (42 loc) · 1.26 KB
/
simple-custom-admin.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
<?php
/**
* Plugin Name: Simple Custom Admin
* Version: 1.2
* Plugin URI: https://profiles.wordpress.org/carl-alberto#content-plugins
* Description: Simple plugin to customize or white label the WP admin dashboard for non Administrator accounts.
* Author: Carl Alberto
* Author URI: https://carl.alber2.com/
* Requires at least: 4.0
* Tested up to: 4.0
*
* Text Domain: simple-custom-admin
* Domain Path: /lang/
*
* @package Simple Custom Admin
* @author Carl Alberto
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Load plugin class files.
require_once( 'includes/class-simple-custom-admin.php' );
require_once( 'includes/class-simple-custom-admin-settings.php' );
// Load plugin libraries.
require_once( 'includes/lib/class-simple-custom-admin-admin-api.php' );
// Load custom admin roles.
require_once( 'includes/class-admin-roles.php' );
/**
* Returns the main instance of Simple_Custom_Admin to prevent the need to use globals.
*
* @since 1.0.0
* @return object Simple_Custom_Admin
*/
function simple_custom_admin() {
$instance = Simple_Custom_Admin::instance( __FILE__, '1.1' );
if ( is_null( $instance->settings ) ) {
$instance->settings = Simple_Custom_Admin_Settings::instance( $instance );
}
return $instance;
}
Simple_Custom_Admin();