| Server IP : 213.132.222.41 / Your IP : 216.73.216.254 Web Server : Apache System : Linux plesk4.nlhosting.net 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : thecovenant ( 10927) PHP Version : 8.3.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/thecovenant.nl/httpdocs/wp-content/plugins/hide-admin-navbar/ |
Upload File : |
<?php
/**
* Plugin Name: Hide Admin Navbar
* Plugin URI: https://wordpress.org/plugins/hide-admin-navbar/
* Description: Disable admin bar and remove admin toolbar from the frontend.
* Version: 1.8
* Tested Up to: 6.8
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Mehraz Morshed
* Author URI: https://profiles.wordpress.org/mehrazmorshed/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: hide-admin-navbar
* Domain Path: /languages
*/
/**
* Hide Admin Bar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Hide Admin Bar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
defined( 'ABSPATH' ) or die( 'Access denied.' );
require_once plugin_dir_path( __FILE__ ) . 'functions.php';
add_action( 'init', 'hide_admin_navbar_load_textdomain' );
add_filter( 'show_admin_bar', 'hide_admin_navbar_main' );
add_action('admin_notices', 'han_show_migration_notice');