How to decide what options sub-sites get?

Hello
How do I set what new sites for users will display in the admin? For example, right now when a user creates a new site they don't have the option to see plugins, themes, or anything else.

Dustin

  • Alexander
    • DEV MAN’s Mascot

    It sounds like the user might not be an admin of their own site somehow. Or they're being redirected to the wrong dashboard. Usually admins see everything. Other users can still access the dashboard, but most of the links are missing. To remove options you create a plugin with something like this:

    function override_menu_pages(){
    
    	remove_menu_page('link-manager.php');
    	remove_menu_page('upload.php');
    	remove_menu_page('tools.php');
    	remove_menu_page('edit.php');
    	remove_menu_page('users.php');
    
    	remove_submenu_page('themes.php', 'widgets.php' );
    	remove_submenu_page('options-general.php', 'options-writing.php' );
    	remove_submenu_page('options-general.php', 'options-reading.php' );
    	remove_submenu_page('options-general.php', 'options-media.php' );
    	remove_submenu_page('options-general.php', 'options-discussion.php' );
    	remove_submenu_page('options-general.php', 'disable_comments_settings' );
    	remove_submenu_page('options-general.php', 'options-privacy.php' );
    	remove_submenu_page('index.php', 'my-sites.php' );
    }
    add_action('admin_menu','override_menu_pages',99999);

    Hope that helps!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.