title: Wordpress - Buddypress plugin
body: <p>I want to hide sub-nav in profile settings</p>
  
  <p><a href="https://i.stack.imgur.com/PlqKj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PlqKj.png" alt="enter image description here"></a></p>
  
  <p>I hide sub-nav comment "wp-content\plugins\buddypress\bp-settings\bp-settings-loader.php" </p>
  
  <pre><code>// Add General Settings nav item
      $sub_nav[] = array(
          'name'            =&gt; __( 'General', 'buddypress' ),
          'slug'            =&gt; 'general',
          'parent_url'      =&gt; $settings_link,
          'parent_slug'     =&gt; $this-&gt;slug,
          'screen_function' =&gt; 'bp_settings_screen_general',
          'position'        =&gt; 10,
          'user_has_access' =&gt; bp_core_can_edit_settings()
      );
  </code></pre>