Remove access to WPMUDEV Dasboard items

Want to add WPMUDEV Dashboard in the client sites, but want to give access just to the plugins and themes.

Adding the following code in the wp-config.php will restrict the access, but the user can edit the file and remove the code:

define('WPMUDEV_LIMIT_TO_USER', '1');

Will just need to know what code in the php or plugin i can delete so that the "MANAGE" and "SUPPORT" options do not appear

Would be nice to also be able to remove the "GET SUPPORT" button as well in the "EARN POINTS" and "HUB" button in the dashboard menu

  • Luís

    Hi Xavier ,

    Hope you're doing well today and thanks for you patience here!

    After discuss this with the developer, this is a complex customization and this kind of "whitelabled" access to our products it's beyond the scope of the Support.

    At the moment, we have some options to hide WPMUDEV Dashboard from the client's WordPress admin dashboard (using the constant in wp-config.php, adding a different role, etc.) but not just certain options (i.e menu items).

    I can suggest you a mu-plugin to hide the menu items to the others users except you using CSS, something like:

    //Hide "Support" menu item to all users except ID = 1
    function customize_wpmudev() {
    	$user_id = get_current_user_id();
    	if ($user_id != 1) {
        	echo '<style>#toplevel_page_wpmudev li:nth-child(5) {display: none;}</style>';
    add_action('admin_head',  'customize_wpmudev');

    However, I think this would be a great feature, so, I've just moved this over to our Features and Feedback section, so it can be taken into consideration for the next plugin updates.

    Hopefully some other members will show their support for the feature too, the more members that ask for it the sooner it will happen.

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.