HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/hide-admin-menu/init.php
<?php
/*
Plugin Name: Hide admin menu
Plugin URI: 
Description: User can hide the admin menu of side bar and top bar that he want accoding user role.
Author: Bhavin Thummar & Maulik Patel (BM Studio)
Version: 1.1.2
Author URI: https://www.linkedin.com/in/bhavin-thummar
*/

//for table create when plgin activate
function bhm_create_db_process(){

 global $wpdb;
 $table_name= $wpdb->prefix ."options";
 $wpdb->insert(
 $table_name, //table
 array('option_name' => 'hide_menu_bh_plugin'));

 $wpdb->insert(
 $table_name, //table
 array('option_name' => 'hide_sub_menu_bh_plugin'));
 
 $wpdb->insert(
 $table_name, //table
 array('option_name' => 'hide_top_menu_bh_plugin'));

 $wpdb->insert(
 $table_name, //table
 array('option_name' => 'menu_order_bh_plugin'));

}

function __construct(){
	register_activation_hook(__FILE__,'bhm_create_db_process');
}
function bhm_Hide_Menus()
{
 add_menu_page("Hide Menu","Hide Menu","manage_options","hide-admin-menu","bhm_get_menu_list");
}

add_action("admin_menu","bhm_Hide_Menus");

require_once(plugin_dir_path(__FILE__).'menu-list.php');