User Accounts

I am testing my MU site and registered as a user without a site. Then when I log in as that user I can get acces to a dashboard that has wordpress branding on it. /wp-admin/user. Chances are users may not ever find this link but if they do is there a way to hide the widgets? I have the Bradning plugin installed but it does not appear to have any affect over that page.


  • Tom Eagles
    • Syntax Hero


    This can be done by adding the following to your themes functions.php

    function baw_no_admin_access()
     if( !current_user_can( 'administrator' ) ) {
         wp_redirect( home_url() );
    add_action( 'admin_init', 'baw_no_admin_access', 1 );

    NOTE:Admins will have to use wp-login.php to login into wp-admin



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.