From your pastebin:
if (!function_exists('wp_get_current_user')) {
include_once( ABSPATH . 'wp-admin/includes/pluggable.php' );
}
if ( is_super_admin() ) {
add_action( 'admin_init', 'myplugin_register');
add_action( 'admin_menu', 'myplugin_menu' );
}
There is no file at wp-admin/includes/pluggable.php. pluggable.php is at wp-includes/pluggable.php, but I see no reason you should have to intentionally include that file. It load front and back end.
Related Posts:
- Can’t access wp-admin Internal Server Error 500
- 500 Internal Server Error after Register dialog, but with successful registration
- Activating Child Theme Breaks Website, Blank Page, Error 500
- /wp-admin/ 500 error
- wp-login not found – All usual solutions not working
- Unable to access my page or WP Admin
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Remove ‘Custom..’ option in tinyMCE colour swatch
- How to create sub menu with a URL parameter?
- Remove “From computer” media tab for posts with existing attachments?
- Upgrade to SSL Breaks Admin Dashboard
- Disable slow media queries?
- Make sub menu items a main link in the admin menu using fuctions.php
- Can initial focus be set to search field in WordPress Media Library?
- When attempting to update a self-hosted WordPress site, I’m seeing “ASN1 unknown message digest algorithm”
- .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
- Too many datadabse connections – upper ceiling mysql
- I can’t access my admin page after changing main url
- Color picker for posts and pages
- How to create a wp admin page (for use in an ajax request)
- Removing user fields [duplicate]
- Creating WordPress Admin Themes
- Add “Page Revised” column to Admin
- Redirect users away from Admin breaks ajax
- SSL Partially breaking admin panel and elementor
- From 403 error to 500 internal server error
- Form validation in WordPress Admin Panel
- XDG-OPEN is not recognized by WP CLI admin command
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library
- Woocommerce: Add column to ORDERS admin page with items purchased
- How to declutter admin columns
- New wordpress install, what are the reasons the “Install Themes” tab is missing?
- Post Bulk Update
- wp_comments table really big casuing /wp-admin/edit-comments.php to slowly load
- How to make the front-end RTL without changing the admin panel language?
- sort tags by tag ID in admin panel
- How to fix ‘WordPress redirection loop problem in wp-login.php page’?
- wp-admin remove part of the url
- WP admin user search doesn’t return all users
- Where are screen options when in admin on mobile?
- How do you force the wordpress dashboard to be 1 coulmn by default?
- How to remove dashboard access (wp-admin) for author but not disable the capabilities?
- Migrated wordpress site give “Undefined variable: php” warnings
- Add and Remove Row Actions in an Existing WP_List_Table
- I am unable to login into my wp-admin
- Is it possible to take over a WordPress site if the old administrator is MIA?
- Dashboard Widget CSS
- How can I prevent redirects from mysite/page to mysite/wp path/page?
- How can I prevent a function from loading in the admin screens?
- Add styles to wordpress admin on the Page List
- making users.php search include a specific user meta data field without messing with the SQL query itself
- Redirect an entire WordPress site on a subdomain, except wp-admin
- WordPress Admin Toolbar Disappeared when moved site to subfolder
- Admin sometimes redirects to HTTPS
- WP Core hard coded to use http://www.w3.org/1999/xhtml not HTTPS
- Hide user group filtering links
- Fix Admin Dashboard Posts tab
- auto generated robots.txt problem
- Change maxlength of link_description in dashbord link section?
- Add a custom field when adding / editing a page / post in admin panel
- View all comments on post one click
- wordpress wp-admin/includes/shema.php file has been modify alone
- Broken Customizer page
- I can’t access my wp admin dashboard
- wp-admin going directly to 404
- Weird white space in admin area
- How to logout the current user without notices and warnings?
- Updated to wordpress 5.5.1 doesn’t work
- How can I change block editors suggested links to display another url (i.e. from api.mysite to www.mysite)
- mixed contents admin panel is Unsecured
- How to change labels in the projects page
- Can’t access Network Admin dashboard in wp-admin
- Can I rename the wp-admin folder?
- How do I list subpages in post editor view?
- wp-admin won’t load for users behind a Barracuda F600 firewall
- WordPress wp-admin login problem
- Failed to load resource: the server responded with a status of 431 ()
- Database problem
- WordPress Admin Page Redirecting to Subdomain
- Remove Theme menu link from Admin Panel
- Why does my edit screen suddenly have such a buggy interface?
- Disabling WP-Admin Caching in htaccess
- Unable to log in as admin
- Add files to wordpress admin panel footer
- Can I rename the wp-admin folder?
- WordPress Child problem in admin
- Why WordPress not logout after I have close my browser?
- $current_screen if condition for a specific page in admin
- Working with post values in the admin panel
- wordpress login blank screen [closed]
- All of my WordPress sites have Bold Open Sans
- wp-admin blank page after admin login and all security off
- Can a wordpress admin see my failed Login attempts?
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- Redirect users based on their roles, is_admin()
- insert an admin table inside another admin page
- /wp-admin/ – this link showing me “Index of /wp-admin”/ instead of dashboard
- What methods are you using to transfer individual WP site components from one site to another?
- how to Hide all products except the General Manager role in the WordPress admin panel?