Hide menu and tab on profile

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Alex 1 year, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12657

    Jorge Olvera
    Participant

    Hi, i need hide tab activity from slide menu on profile section,  but i cant find where array is created for the loop.

    Can you help me ?  thanks

    #12667

    Alex
    Keymaster

    Please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :

     

    add_action(‘bp_course_api_get_user_profile_tabs’,function($settings){

      foreach ($settings as $key => $value) {

        if($value[‘key’] == ‘activity’){

          unset($settings[$key]);

        }

      }

      return $settings;

    });

    #12802

    Jorge Olvera
    Participant
    #12807

    Alex
    Keymaster

    sorry please remove the above given code and add this one :

     

    add_filter(‘bp_course_api_get_user_profile_tabs’,function($settings){

      foreach ($settings as $key => $value) {

        if($value[‘key’] == ‘activity’){

          unset($settings[$key]);

        }

      }

      $settings = array_values($settings);

      return $settings;

    });

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Template Design © VibeThemes. All rights reserved.