• Hi, again another question

    How can i hide plugins from users, except for the administrator (with userdid 1)in WP 3.5 (NON-mu)?

    Is there some PHP then can do this?

Viewing 1 replies (of 1 total)
  • Hi,

    You can use Admin Menu Editor

    or do it manuelly using your function.php file :
    In your function.php file (in yout theme folder), you can use the if is_admin statement to do not display plugins page for other users.

    The WordPress function is_plugin_page() return TRUE if the page http://www.your-website.com/wp-admin/plugins.php is called, so :

    Do a IF statement for is_plugin_page()
    then DO a IF statement for is_admin
    if ( ! is_admin() ) {
    echo “You are not ADMIN, you’re redirected to http://www.your-website.com/wp-admin/”;
    }
    else {
    echo “You are ADMIN, stay on plugins page”;
    }
    end if;
    else {
    return;
    }
    end if;

    If this could help you…

Viewing 1 replies (of 1 total)

The topic ‘question: how can i hide plugins?’ is closed to new replies.