Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<?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
Something went wrong with that request. Please try again.