• How to Hide tab ‘ GENERAL SETTINGS’

    Code doesn’t work

    add_action(‘admin_menu’, ‘yit_menu_fix’, 100);

    function yit_menu_fix() {

    if (!current_user_can(‘boss’)) {
    remove_menu_page(‘yith_wcwl_panel&tab=settings’);
    }

    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    hope you are doing well ??

    Please, add this custom code to the theme functions.php file.

    if ( ! function_exists( 'yith_wcwl_available_admin_tabs_remove_general' ) ) {
    	function yith_wcwl_available_admin_tabs_remove_general( $tabs ) {
    		unset( $tabs['settings'] );
    		return $tabs;
    	}
    	add_filter( 'yith_wcwl_available_admin_tabs', 'yith_wcwl_available_admin_tabs_remove_general' );
    }

    Let us know if that did the trick.

    Have a nice day!

    Thread Starter zatanx

    (@zatanx)

    “popular” tab doesn’t work.

    Plugin Support Antonio La Rocca

    (@therock130)

    “Popular” tab is not available in this version of the plugin

    This forum is focused on free version of the plugin; if you’re a premium customer, I suggest you to contact us on dedicated help desk on our site

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Hide tab GENERAL SETTINGS’ is closed to new replies.