-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhide_admin_bar.php
More file actions
27 lines (23 loc) · 837 Bytes
/
hide_admin_bar.php
File metadata and controls
27 lines (23 loc) · 837 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
<?php
/**
* Plugin Name: Hide Admin Bar
* Plugin URI: https://wordpress.org/plugins/hide-admin-bar/
* Description: Hides the Admin Bar in WordPress 3.1+.
* Version: 1.0.2
* Requires at least: 3.1
* Requires PHP: 5.6
* Author: David Vongries
* Author URI: https://davidvongries.com/
* Text Domain: hide-admin-bar
*
* @package Hide_Admin_Bar
*/
defined( 'ABSPATH' ) || die( "Can't access directly" );
// Helper constants.
define( 'HIDE_ADMIN_BAR_PLUGIN_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) );
define( 'HIDE_ADMIN_BAR_PLUGIN_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
define( 'HIDE_ADMIN_BAR_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
define( 'HIDE_ADMIN_BAR_PLUGIN_VERSION', '1.0.2' );
require __DIR__ . '/helpers.php';
require __DIR__ . '/vendor/autoload.php';
Mapsteps\HideAdminBar\Setup::init();