-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin-panel-editor.php
executable file
·59 lines (37 loc) · 1.09 KB
/
admin-panel-editor.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
57
58
59
<?php
/*
* Plugin Name: Admin Panel Editor
* Description: This is easy way to edit the admin panel
* Version: 1.0.0
* Author: Otimize - Talita Mota
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Domain Path: /languages/
* Text Domain: admin-panel-editor
*/
define( 'ADMIN_PANEL_EDITOR_VERSION', '1.0.0' );
register_activation_hook( __FILE__, 'admin_editor_activate' );
if( ! function_exists( 'admin_editor_activate' ) ) {
function admin_editor_activate() {
flush_rewrite_rules();
}
}
register_deactivation_hook( __FILE__, 'admin_editor_deactivate' );
if( ! function_exists( 'admin_editor_deactivate' ) ) {
function admin_editor_deactivate() {
flush_rewrite_rules();
}
}
register_uninstall_hook(__FILE__, 'admin_editor_uninstall');
if( ! function_exists( 'admin_editor_uninstall' ) ) {
function admin_editor_uninstall() {
return;
}
}
require plugin_dir_path( __FILE__ ) . 'includes/class-admin-panel-editor.php';
function run_admin_panel_editor() {
$plugin = new Admin_Panel_Editor();
$plugin->run();
}
run_admin_panel_editor();
?>