public
Created

  • Download Gist
cw_stuff.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?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');
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.