How to hide YITH plugin menu on Admin Dashboard

  • You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

  • You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

archonic

Active member
Oct 10, 2019
139
60
28
Hi all, i've been trying to hide the YITH plugin menu item on WP admin dashboard, but still no success. Other plugins menu can be easily hide using these snippet but not for YITH.
Anyone here able to help me with the right snippet to hide YITH?
1631593636978.png


Code:
You don't have permission to view the code content. Log in or register now.
 

bluviaggiatore

Active member
Aug 26, 2021
146
52
28
can you try this

add_action('admin_menu', 'yit_menu_fix', 100); function yit_menu_fix() { if (!current_user_can('manage_options')) { remove_menu_page('yit_plugin_panel'); } }
 

Latest posts

Forum statistics

Threads
57,909
Messages
673,746
Members
161,873
Latest member
Teffa
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock    No Thanks