Skip to content

Instantly share code, notes, and snippets.

@shubham-99fusion
Created May 14, 2021 12:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save shubham-99fusion/85a6efc579f19328519d1163a40d908b to your computer and use it in GitHub Desktop.
add_filter('bp_course_api_get_instructor_tabs',function($tabs,$course_id){
$ntabs = array();
$which_tabs_to_remove = ['mytab1','mytab2'];
foreach ($tabs as $key => $tab) {
if(!in_array($tab['key'],$which_tabs_to_remove)){
$ntabs[] = $tab;
}
}
return $ntabs;
},99,2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment