-
Notifications
You must be signed in to change notification settings - Fork 1
/
default-admin-color-scheme.php
39 lines (36 loc) · 1.24 KB
/
default-admin-color-scheme.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
<?php
/**
* Main plugin file.
*
* Author: Plugin Pizza
* Author URI: https://github.com/barryceelen
* Description: Select a default admin color scheme for all users.
* Domain Path: /languages
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Plugin Name: Default Admin Color Scheme
* Plugin URI: https://wordpress.org/plugins/default-admin-color-scheme
* Text Domain: default-admin-color-scheme
* Version: 1.0.3
* Requires PHP: 5.3.0
* Requires at least: 3.8.0
* GitHub Plugin URI: https://github.com/plugin-pizza/default-admin-color-scheme
*
* @package PluginPizza\DefaultAdminColorScheme
*
* phpcs:disable WordPressVIPMinimum.Files.IncludingFile.UsingCustomConstant
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( is_admin() ) {
require_once plugin_dir_path( __FILE__ ) . 'class-default-admin-color-scheme.php';
add_action( 'plugins_loaded', array( 'Default_Admin_Color_Scheme', 'get_instance' ) );
}
/**
* Save default settings.
*
* Note: When the plugin is deleted, the uninstall.php file is loaded.
*/
register_activation_hook( __FILE__, array( 'Default_Admin_Color_Scheme', 'activate' ) );