Created
May 14, 2021 12:59
-
-
Save shubham-99fusion/85a6efc579f19328519d1163a40d908b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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