WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used a plugin that hides wp-admin and does a lot of other things, but it hid wp-admin for admin-user too (due to some bad settings on my part probably) - how to revert back? I deleted the plugin's folder to get back to wp-admin, but as soon as I activate it, it again starts hiding admin-stuff. (It's retaining the settings it seems, because it doesn't hide admin-panel right away upon activation on fresh install. I had to alter the settings in wp-admin to make it hide wp-admin.)

share|improve this question
Did you try asking the plugin author? – Otto Apr 23 '13 at 2:13
Sounds like the plugin saved some settings into your DB. You can manually edit your DB. – Kirill Fuchs Apr 23 '13 at 2:38

I usually dont use plugins for this due to the fact its unstable.

I use this in my theme functions.php so you can always remove it if need be and it saves nothing to the DB.

This also leave open the admin ajax files if you need them for any theme functions like thickbox and a few others.

function erichamby_restrict_admin() {
if ( ! current_user_can('administrator')  && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) {
    wp_redirect( home_url() );
  add_action( 'admin_init', 'erichamby_restrict_admin', 1 );
share|improve this answer

You said you deleted the plugin folder ... so login to your website via FTP and look for your .htaccess file

This probably was changed by the plugin and re-writes the URLs like /wp-admin

  • Duplicate the file (to be safe)
  • Open the file to edit it

Check / change the code back to:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.