Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stas
Created December 22, 2011 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stas/1510284 to your computer and use it in GitHub Desktop.
Save stas/1510284 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Courseware Hacks
*/
function cw_hack_tabs() {
global $wp_filter;
foreach ( reset( $wp_filter['courseware_group_nav_options'] ) as $k => $v ){
$klass = reset( $v['function'] );
$method = end( $v['function'] );
if ( get_class( $klass ) == 'BPSP_Schedules' && $method == 'add_nav_options' )
unset( $wp_filter['courseware_group_nav_options'][10][$k] );
}
}
add_action('bp_groups_setup_nav', 'cw_hack_tabs');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment