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 http://halfelf.org/2012/mu-plugins-are-good/ 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!!