PluginProbe
Admin Bar Editor – Toolbar Customization with User Role based access & Custom menus / 1.1.9
Admin Bar Editor – Toolbar Customization with User Role based access & Custom menus v1.1.9
1.1.10 1.1.9 1.1.8 1.1.7 trunk 1.0 1.0.1 1.0.2.1 1.0.2.2 1.0.2.3 1.0.2.4 1.0.2.5 1.0.2.6 1.0.2.7 1.0.2.8 1.0.2.9 1.0.3.0 1.0.4.0 1.1.0 1.1.2 1.1.2.0 1.1.2.1 1.1.2.2 1.1.3 1.1.4 All 27 releases
admin-bar / admin-bar.php

admin-bar.php in Admin Bar Editor – Toolbar Customization with User Role based access & Custom menus 1.1.9, at admin-bar.php

105 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Admin Bar Editor
5 * Plugin URI: https://jeweltheme.com/admin-bar-editor
6 * Description: Hide Admin bar or toolbar based on user role and add custom links, reorder, change WordPress logo & howdy text. Change bar position, background color.
7 * Version: 1.1.9
8 * Author: Pixar Labs
9 * Author URI: https://pixarlabs.com
10 * Text Domain: admin-bar
11 * Domain Path: languages/
12 * License: GPLv3 or later
13 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
14 *
15 * @package admin-bar
16 */
17
18 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
20 $jlt_admin_bar_editor_plugin_data = get_file_data(
21 __FILE__,
22 array(
23 'Version' => 'Version',
24 'Plugin Name' => 'Plugin Name',
25 'Author' => 'Author',
26 'Description' => 'Description',
27 'Plugin URI' => 'Plugin URI',
28 ),
29 false
30 );
31
32 // Define Constants.
33 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR' ) ) {
34 define( 'JLT_ADMIN_BAR_EDITOR', $jlt_admin_bar_editor_plugin_data['Plugin Name'] );
35 }
36
37 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_VER' ) ) {
38 define( 'JLT_ADMIN_BAR_EDITOR_VER', $jlt_admin_bar_editor_plugin_data['Version'] );
39 }
40
41 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_AUTHOR' ) ) {
42 define( 'JLT_ADMIN_BAR_EDITOR_AUTHOR', $jlt_admin_bar_editor_plugin_data['Author'] );
43 }
44
45 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_DESC' ) ) {
46 define( 'JLT_ADMIN_BAR_EDITOR_DESC', $jlt_admin_bar_editor_plugin_data['Author'] );
47 }
48
49 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_URI' ) ) {
50 define( 'JLT_ADMIN_BAR_EDITOR_URI', $jlt_admin_bar_editor_plugin_data['Plugin URI'] );
51 }
52
53 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_DIR' ) ) {
54 define( 'JLT_ADMIN_BAR_EDITOR_DIR', __DIR__ );
55 }
56
57 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_FILE' ) ) {
58 define( 'JLT_ADMIN_BAR_EDITOR_FILE', __FILE__ );
59 }
60
61 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_SLUG' ) ) {
62 define( 'JLT_ADMIN_BAR_EDITOR_SLUG', dirname( plugin_basename( __FILE__ ) ) );
63 }
64
65 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_BASE' ) ) {
66 define( 'JLT_ADMIN_BAR_EDITOR_BASE', plugin_basename( __FILE__ ) );
67 }
68
69 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_PATH' ) ) {
70 define( 'JLT_ADMIN_BAR_EDITOR_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
71 }
72
73 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_URL' ) ) {
74 define( 'JLT_ADMIN_BAR_EDITOR_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
75 }
76
77 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_INC' ) ) {
78 define( 'JLT_ADMIN_BAR_EDITOR_INC', JLT_ADMIN_BAR_EDITOR_PATH . '/Inc/' );
79 }
80
81 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_LIBS' ) ) {
82 define( 'JLT_ADMIN_BAR_EDITOR_LIBS', JLT_ADMIN_BAR_EDITOR_PATH . 'Libs' );
83 }
84
85 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_ASSETS' ) ) {
86 define( 'JLT_ADMIN_BAR_EDITOR_ASSETS', JLT_ADMIN_BAR_EDITOR_URL . 'assets/' );
87 }
88
89 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_IMAGES' ) ) {
90 define( 'JLT_ADMIN_BAR_EDITOR_IMAGES', JLT_ADMIN_BAR_EDITOR_ASSETS . 'images/' );
91 }
92
93 if ( ! class_exists( '\\JewelTheme\\AdminBarEditor\\AdminBarEditor' ) ) {
94 // Autoload Files.
95 include_once JLT_ADMIN_BAR_EDITOR_DIR . '/vendor/autoload.php';
96 // Instantiate AdminBarEditor Class.
97 include_once JLT_ADMIN_BAR_EDITOR_DIR . '/class-admin-bar.php';
98 }
99
100 if (! class_exists('\\JewelTheme\\AdminBarEditor\\AdminBarEditor')) {
101 // Activation and Deactivation hooks.
102 register_activation_hook(JLT_ADMIN_BAR_EDITOR_FILE, array('\\JewelTheme\\AdminBarEditor\\AdminBarEditor', 'jlt_admin_bar_editor_activate'));
103 }
104
105