Plugin Name: Super Admin Exclusive
Author: yellwohoster
Version: 1.2
This plugin creates a hidden super administrator role and user in WordPress. This user and role are concealed from all other users, including other administrators, to provide an exclusive access level while retaining full administrative functionality.
Warning: This plugin creates a user with hardcoded credentials. It is critical to change these credentials immediately after activation.
- Creates Super Role: On activation, it creates a
superuser role with the same capabilities as a standard Administrator. - Creates Super User: It creates a default
superuser. The initial credentials are:- Username:
super - Email:
[email protected] - Password:
AbuBaker@123*&6
- Username:
- Stealthy Operation:
- The
superrole is hidden from role selection dropdowns for all users except thesuperuser. - The
superuser is hidden from the main user list (users.php) for all other users. - The plugin itself is hidden from the plugins list for all users except the
superuser.
- The
- Exclusive Dashboard:
- Adds a "Super User Dashboard" accessible only to the
superuser underSettings -> SuperandTools -> Super. - This dashboard lists all users with the
superrole and includes a form for thesuperuser to reset their own password.
- Adds a "Super User Dashboard" accessible only to the
- Upload the
Superplugin folder to the/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- Log in immediately with the default
superuser credentials. - Navigate to Settings -> Super and use the form to change your password.
The plugin uses several WordPress hooks and filters to achieve its functionality:
register_activation_hook: Creates thesuperrole and user when the plugin is activated.plugins_loaded: Ensures the role and user exist on every page load.editable_roles&wp_dropdown_roles: Removes thesuperrole from being displayed or assigned by other admins.pre_user_query: Modifies the user query to exclude thesuperuser from lists.all_plugins: Hides this plugin from the plugin list for non-super users.admin_menu: Adds the hidden dashboard menu pages, visible only to thesuperuser.
This plugin is intended for site owners who require a separate, hidden administrative account for management or emergency access purposes.