title: I want to hide the customization yith pos tab for all users aside from admin. how can i do that?
body: <p>I want to hide the customization yith pos tab for all users aside from admin. how can i do that?</p>
  <p>screenshot :</p>
  <p><a href="https://i.stack.imgur.com/MMF7C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MMF7C.png" alt="enter image description here" /></a></p>
  <p>i tried this but did not work</p>
  <pre><code>add_filter( 'yith_pos_panel_settings_tabs_array',  'filter_yith_pos_panel_settings_tabs_array', 200, 1 );
  function filter_yith_pos_panel_settings_tabs_array( $tabs_array ) {
      // Only for &quot;shipping_manager&quot; user role
      if( current_user_can( 'YITH_POS_Manager' ) ) {
          // Remove some specific tabs
          unset( $tabs_array['customization'], 
      }
      
      return $tabs_array;
  }
  </code></pre>