forked from trustedlogin/Remove-Dashboard-Access
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremove-dashboard-access.php
More file actions
34 lines (28 loc) · 890 Bytes
/
remove-dashboard-access.php
File metadata and controls
34 lines (28 loc) · 890 Bytes
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
<?php
/**
* Plugin Name: Remove Dashboard Access
* Plugin URI: http://www.werdswords.com
* Description: Removes Dashboard access for certain users based on capability.
* Version: 1.1.1
* Author: Drew Jaynes (DrewAPicture)
* Author URI: http://www.drewapicture.com
* License: GPLv2
*/
// Bail if called directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// RDA_Options Class
require_once( dirname( __FILE__ ) . '/inc/class.rda-options.php' );
// RDA_Remove_Access Class
require_once( dirname( __FILE__ ) . '/inc/class.rda-remove-access.php' );
// Load options instance
if ( class_exists( 'RDA_Options' ) ) {
$load = new RDA_Options;
// Set up options array on activation.
register_activation_hook( __FILE__, array( $load, 'activate' ) );
// Run it
if ( class_exists( 'RDA_Remove_Access' ) ) {
$access = new RDA_Remove_Access( $load->capability(), $load->settings );
}
}