WordPress LMS for Web and mobile Forums Ionic App Support Hide menu and tab on profile

Hide menu and tab on profile

Tagged: 

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

    admin
    Member
    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
    I added the snippet but, show me this errors   https://drive.google.com/drive/folders/1qUrNgIguUSkbCKr3YUw8xwm_M_R8sSPu?usp=sharing
    #12807

    admin
    Member
    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.