• Hi , I’m using this plugin and i just want to use it on Admin user level, but i have other user level that comes with woocommerce, like shop manager, i dont want to show YITH on the shop manager menu on the WordPress dashboard.

    I’m using user role editor, but i couldn’t find anything related to remove it, and also i couldn’t hide it using Ultimate Dashboard. Please give me an idea how to achieve that and remove it from the specific user role dashboard

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well and sorry for the delay.

    In order to achieve what you need, add the following code in the functions.php file of your active child theme:

    if ( ! function_exists( 'yith_wcaf_remove_capabilities' ) ) {
    	function yith_wcaf_remove_capabilities( $return ){
    		$return = 'manage_options';
    		return $return;
    	}
    	add_filter('yith_wcaf_panel_capability','yith_wcaf_remove_capabilities');
    }

    Check it out and tell us if it works well for you please.

    Have a nice weekend!

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Capability for a user role’ is closed to new replies.