Admin utility classes?

There aren’t any documented anywhere AFAIK. The only way to find them is to inspect existing parts of the UI. I like your approach though. Way too many people try to style and brand their plugin as if it’s a totally separate application rather than trying to blend in with the Dashboard.

wp-admin is opening but the site isn’t opening

If you are not using the default port, you should write the port in the wp_options table in your database at siteurl and home after the localhost. For example, localhost/site/wp-admin/ becomes localhost:8080/site/wp-admin/. Does this option work for you?

Error 403 on wp-admin – Redirection to upgrade.php

The Error 403 with a redirection to upgrade.php in a WordPress site’s admin area can be a bit tricky to diagnose and resolve, as it can stem from various issues, including file permissions, server configuration, database problems, or corrupted files. Let’s go through some steps to troubleshoot and potentially resolve this issue: File Permissions: Incorrect … Read more

disable admin bar except administrator

Your third one looks like it should work, though it’s a bit hard to read. I’d recommend something like this: add_filter( ‘show_admin_bar’, ‘wpse424492_admin_bar’, 10000 ); function wpse424492_admin_bar( $show ) { if ( current_user_can( ‘manage_options’ ) ) { // Show the admin bar for Admins. return true; } // Hide the admin bar for anyone else. … Read more

Cannot Access wp-admin

Seems like you tried a lot of things, sorry you’re stuck like this. You didn’t mention anything about the database, though – have you also tried importing a whole new DB? An usermeta issue might explain this. I’d try deleting the database (while backing it up first) and renaming the plugin folder to something like … Read more