Support » Networking WordPress » Removing "export" from my users admin panel

  • Resolved Amal 007



    Is there a way could remove/hide “Export” option from my users admin panels.Am sorry for the dumb question 🙂 thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • function hide_export_from_non_admins() {
            if ( ! current_user_can( 'install_themes' ) ) {
                 remove_submenu_page('tools.php', 'export.php');
     add_action( 'admin_menu', 'hide_export_from_non_admins' );

    Add this to your theme function.php

    Thanks for your reply indybook.
    Sorry if am wrong…i guess this is applicable only to the users use who use same theme which is used by super admin right? but my users have option to choose from several themes…

    Don’t put it in your theme function.php (indybrook, it’s a great idea, but not sustainable).

    Instead, put it in an mu-plugin file!

    Read for some examples 🙂

    Amal 007, you are right about the theme function file. It’s a mu forum, my bad. should be mu-plugin file, of course, as Ipstenu (Mika Epstein) says.

    You can use mu-plugins on a single install of WP 🙂 I use ’em on clients where I don’t want them to disable plugins 🙂

    Ipstenu (Mika Epstein), it’s a good one, thanks! I never gave it much thought with singles, as the owners usually want a theme per a site. will try it definitely. Is productivity ok with it? Theoretically it should be

    Hi Indybook and Ipstenu (Mika Epstein) thankyou for your responses…i created the mu-plugin and it works fine:) thanks!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Removing "export" from my users admin panel’ is closed to new replies.