Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Puchar WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Jak ukryć niepotrzebne elementy menu przed administratorem WordPressa?

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy kiedykolwiek zastanawiałeś się, czy możliwe jest oczyszczenie obszaru administracyjnego WordPress dla siebie i twoich użytkowników?

W obszarze administracyjnym WordPress (wp-admin) znajduje się wiele rzeczy, których twoi użytkownicy, autorzy lub klienci nie muszą widzieć ani używać. Uporządkowanie obszaru administracyjnego pomaga skupić się tylko na tych opcjach, których potrzebują, bez rozpraszającego bałaganu.

W tym artykule pokażemy, jak ukryć niepotrzebne elementy w panelu administracyjnym WordPress.

How to hide items from WordPress admin

Dlaczego warto ukrywać elementy menu administratora w WordPress?

W obszarze administracyjnym WordPress znajduje się wiele menu, podmenu, opcji oraz ustawień motywu i wtyczek, które można zmienić w dowolnym momencie. Niektóre z tych pozycji menu administratora WordPress obejmują widżety pulpitu nawigacyjnego, obszar administracyjny edycji postów, wtyczki, wygląd, narzędzia i inne.

Jednak większość z tych opcji menu nie jest używana codziennie i ostatecznie zaśmiecają one ekran administratora. Jeśli prowadzisz witrynę internetową WordPress z wieloma autorami lub masz klientów, którzy przechodzą na obszar administracyjny, dobrą praktyką jest uporządkowanie panelu administracyjnego WordPress.

Powinieneś zachować tylko te menu i opcje, które są przydatne dla twoich autorów i klientów, a resztę podmenu ukryć.

Możesz także chcieć wyłączać elementy na podstawie ról użytkowników, tworząc różne interfejsy administratora dla użytkowników o różnych rolach i możliwościach na twojej witrynie WordPress.

To powiedziawszy, przyjrzyjmy się, jak można usuwać niepotrzebne elementy menu z menu administratora WordPress.

Uwaga: Ten przewodnik dotyczy menu administratora zaplecza, które widzi zarejestrowany użytkownik na twojej witrynie, gdy się loguje.

Jeśli chcesz dostosować menu nawigacyjne, które widzą wszyscy odwiedzający twoją witrynę internetową, powinieneś zapoznać się z naszym przewodnikiem krok po kroku , jak dodać menu nawigacyjne w WordPress.

Film instruktażowy

Subscribe to WPBeginner

Jeśli wolisz pisemne instrukcje, czytaj dalej.

Jak ukryć określone elementy menu administratora WordPress?

Najbardziej przyjaznym dla początkujących sposobem na ukrycie menu i elementów z kokpitu administratora WordPress jest użycie wtyczki Admin Menu Editor. Jest to darmowa wtyczka WordPress, która umożliwia zmianę tytułów menu, adresów URL, ikonek i nie tylko.

Możesz także ukrywać elementy menu z panelu bocznego administratora, ustawiać uprawnienia ról użytkowników oraz przeciągać i upuszczać elementy menu, aby uporządkować twój pasek administratora WordPress.

Najpierw należy zainstalować i włączyć wtyczkę Admin Menu Editor. Aby uzyskać więcej informacji, zapoznaj się z naszym przewodnikiem na temat instalacji wtyczki WordPress.

Po włączaniu możesz przejść do Ustawienia ” Edytor menu z twojego kokpitu WordPress. Na tej stronie ustawień zobaczysz wszystkie twoje pozycje menu i podmenu w karcie „Menu administratora”.

Rearrange admin menu items

Możesz po prostu przeciągnąć i upuścić twoje pozycje menu, aby zmienić ich kolejność. Dostępne są również opcje usuwania lub utwórz nowych pozycji menu.

Następnie kliknij strzałkę w dół dla dowolnej pozycji menu, aby zobaczyć więcej opcji. Możesz zmienić nazwę tytułu menu, zmienić stronę docelową i nie tylko.

Change menu item settings

Aby ukryć element menu administratora dla określonego użytkownika, wystarczy kliknąć menu rozwijane „Dodatkowe możliwości”. Następnie możesz wybrać rolę użytkownika, który może zobaczyć element menu z podanych opcji.

Załóżmy na przykład, że chcesz ukryć menu Media i jego podmenu dla wszystkich ról użytkowników z wyjątkiem administratora. Aby to zrobić, wystarczy kliknąć menu rozwijane „Dodatkowe możliwości” i wybrać „Administrator” w sekcji Role.

Choose user role to hide menu item

Gdy skończysz, zapisz swoje zmiany.

Teraz pozycja menu Media będzie widoczna tylko dla roli Administratora i będzie ukryta przed innymi rolami użytkowników.

Jeśli ktoś nadal będzie próbował uzyskać dostęp do ukrytego elementu menu, wpisując adres URL, zobaczy komunikat o błędzie„Nie masz wystarczających uprawnień, aby uzyskać dostęp do tej strony administratora”.

Restricted error message

Możesz teraz powtórzyć te kroki, aby ukryć inne elementy menu administratora i wtyczki dla różnych użytkowników.

Więcej sposobów na dostosowanie własnego administratora WordPressa znajdziesz w tych przewodnikach:

Mamy nadzieję, że ten artykuł pomógł ci ukryć niepotrzebne elementy z obszaru administracyjnego WordPress. Możesz również zapoznać się z naszym kompletnym poradnikiem WordPress na temat optymalizacji pod kątem wyszukiwarek (SEO) i najlepszych wtyczek WooCommerce.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

42 komentarzeZostaw odpowiedź

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Austin says

    Hello:
    I am trying to remove the widget tab from the dropdown menu under the page url for editors.
    When you are logged in and have hit the „visit site” option under the site url in the upper left hand corner, then you hover back over the site url, it now shows options in the drop down, i.e dashboard, widgets, menu. I would like to remove widgets from this menu for editors.
    Thanks

    • WPBeginner Comments says

      Something like Widgets would be under the Appearance dropdown.

      In the Admin Menu Editor plugin settings, you would select the Appearance dropdown, and then the Widget dropdown on the right menu.

      You can then assign the 'Extra capability’ needed for that feature.

  3. Jiří Vaněk says

    I have been using the website every day for about a year and a half. During that time, I have already installed almost everything I need for my work, but the truth is that it now has twice as many items and practically I need maybe half of it. Is it necessary to install a plugin, or can some parts of the menu be hidden with a snippet? He would like to avoid another plugin.

    • WPBeginner Support says

      You would want to use the load default menu button on the side to return to the default menu.

      Administrator

  4. Howard Hue says

    Hey. Don’t use a plugin just use a conditional IF statement. There are a bunch you can use but here are a couple good ones to add to your functions or custom functions file.

    If you’re savvy with WP and some light coding this is the best alternative to a plugin by far, in my opinion.

    // Remove a main menu page link on admin/dash

    remove_menu_page( '$mainmenu-sluge’ );

    // Remove a main menu’s submenu link on admin/dash

    remove_submenu_page( ”$mainmenu-slug”, ”$submenu-slug”);

    Hope this helps.

    • WPBeginner Support says

      Thank you for sharing this, our guides are designed for beginners that don’t have coding knowledge first but for those looking for an alternative, this could be a helpful option.

      Administrator

  5. Kumar says

    we have wordpress site, in our admin panel settings and Appearance not available, don”t why…whats the problem…

    • WPBeginner Support says

      Your user may not be an admin user for your site if you had someone else set it up for you.

      Administrator

  6. Kenneth Bryan Domingo says

    Hi! I want to hide the tutorial tab on my menu but I can’t find it can anyone help me? I can send you pictures of it. Thanks!

    • WPBeginner Support says

      If the menu is added via a plugin then you would want to reach out to your plugin’s support and they should be able to help you with hiding it.

      Administrator

  7. Hurab says

    please guide how to disable the notification for editor. i have tried already but still can see.

    Pleaseguide

    • WPBeginner Support says

      There should be the option to disable admin notices depending on the notices you no longer want to appear.

      Administrator

  8. KITHO says

    How can I hide some menu items for only certain Administrators not all of them? Because there are admins that I don’t want to touch on any design/customizations.

  9. Ron says

    Hi,

    Any news/info/solution/… about those flags! I have just installed plugin (super cool I must say), add demo user, playing with restrictions, logged in on another machine as demo user… ok. Done this „To view your changes to the menu you need to navigate away from the Adminimize settings page.” several times…

    But on the end of a day if this demo user would call me and said „I don’t see Woocommerce”… Well demo user! I see no flags on your Woo…

    Good for me to add demo user. I think I said enough.

    Br,

  10. Julie says

    I didn’t know this plugin, it’s amazing! Thank you so much for making me discover it, you saved my life haha

  11. Giovanni says

    Hello.
    After the last update 1.10.1 no longer see the flags of the things that I selected.
    How can I do?

    Thanks in advance.

  12. Sherry says

    If I have role1 and role2 and each role has their own sidebar widget. Is there a way to add a hook so that when role1 is logged in they will only see sidebar widget1 and when role2 is logged in they will only see sidebar widget2. (see and be able to edit their own widget)
    Currently adminimize allows me to show or hide sidebar so there is no way to specify which sidebar widget.

    Thanks

  13. Patrick says

    This saved me alot! I have this annoying client that keeps on destroying a customized (hard-coded) theme by resetting the appearance theme option on purpose to keep on demanding for unnecessary revisions. Now they can only edit posts which is suppose to be what the client should only be doing. :D Thanks alot for this!

  14. robert says

    i think is better to use of hack rather than using too many plugins and most of them has bug also, which allow hackers kill your website! for example here i share you some of those codes to hide admin items:

    function remove_dashboard_widgets() {
    global $menu,$submenu;

    global $current_user;
    get_currentuserinfo();

    if ($current_user->ID != 1) { // only admin sees the whole thing
    // $menu and $submenu will return fo all menu and submenu list in admin panel .
    $menu[2] = „”; //Dashboard
    $menu[5] = „”; // Posts
    $menu[15] = „”; //Links
    $menu[25] = „”; //Comments
    $menu[65] = „”; //Plugins

    unset($submenu[’themes.php’][5]); //themes
    unset($submenu[’themes.php’][12]); //editor
    }
    }
    add_action(’admin_head’, 'remove_dashboard_widgets’);

    • Linda says

      Robert, your information is interesting. But as a non-coder, I wouldn’t know where to put this little nugget. Any more info on that?

    • Gozie says

      you’re right, and I used your code, it worked well. but how did you come up with this and how can I use it for more security like disabling access to some other sections of my website. thanks.

  15. gina says

    I have comments deactivated in adminimize in the menu options but it stil shows up on the admin screen for all users. I would like only admins and editors to see the comments.

  16. Matt Rock says

    While the article is promising, as of this writing the plugin is compatible up to version 3.6 and hasn’t been updated in almost a year.

    I currently update the functions file using a great tutorial by Justin Tadlock (http://tinyurl.com/qda95ap) but this plugin looks like it would really streamline the process.

    Does anyone know of a similar plugin which is actively maintained and
    compatible with the latest version of wordpress (currently 3.9)?

  17. e-rik says

    While the possibilities of this plugin are very nice and extensive, It misses one giant thing: the possibility to minimize the dashboard for certain administrators. On my client’s sites I want to maintain full access on my own admin account and limit the client’s admin acount(s). Or did I miss something and is this possible?

  18. WPBeginner Staff says

    Yes it is multisite compatible. We will try to cover the scaling of multisite WordPress in some future article. Thanks for the suggestion. However, for the time being try using plugins that are well coded, come highly recommended, and are well documented.

    • lucky says

      I installed it on multisite but wanted to control these things network wide not site by site. I could see no way to do that.

  19. ThatK1dB says

    This is great. i just had a client with no knowledge of WP and had to disable certain features so he didn’t blow this thing up. This plugin has helped. Also, very easy to use.

    Thanks!

    • Jeff says

      I agree. Same problem. Easy to deactivate permissions, but an editor in itself does not have access to certain features which mean I need to give admin role to managers of the site. Then I „deactivate” features and me too as an admin lose the same permissions! Weird.

      This plugin is undiectional – yuo can deactivate but not asctivate permissions.

  20. aathi says

    is it multisite compatible ? And also can you do a post on scaling a multisite along with plugins ?it will be useful for us.We are finding it difficult to find info about wordpress multisite. Your help will be appreciated.

  21. RW says

    This looks like an amazing plugin! Wow, I wonder if something this powerful adds a lot of weight and queries to the database. Does this plugin slow down editing the site?

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.