WordPress LMS for Web and mobile Forums Ionic App Support Profile Page – Hide Result & Activty Slide icons

Profile Page – Hide Result & Activty Slide icons

  • This topic has 1 reply, 2 voices, and was last updated 3 years ago by Alex.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5547

    Bait ALFatih
    Participant

    How to hide Result & Activty Slide icons in profile page?

    #5590

    Alex
    Keymaster

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

    add_filter('bp_course_api_get_user_profile_tabs',function($tabs){
    foreach($tabs as $key => $tab){
    if($tab['key']=='results' || $tab['key']=='activity'){
    unset($tabs[$key]);
    }
    }
    $tabs = array_values($tabs);
    return $tabs;
    });
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.