Viewing 1 replies (of 1 total)
  • hi, just came to the same problem, wanted to hide yith panel for shop manager role, I solved like this:

    if ( current_user_can( 'shop_manager' ) ) {
    	add_action( 'admin_init', 'yith_remove_menu', 999 );
    	function yith_remove_menu(){
    	  remove_menu_page( 'yit_plugin_panel' ); // hide yit_plugin_panel
    	}
    }
Viewing 1 replies (of 1 total)

The topic ‘Remove YITH PLUGINS from admin menu’ is closed to new replies.