[Plugin: Events Manager] Disabling Groups' Events in Buddypress
-
Is there a way to only disable Events for Groups? I don’t want to disable events site-wide, but I do want to disable Events that are only for Groups.
I’ve done a search and came across these 2 options that don’t work:
1.) Inputting these 2 codes (separately and together) into my theme’s functions.php (I’m using Site5.com’s Wisebusiness theme)
remove_action( ‘bp_init’, ‘bp_em_init’ );
remove_action( ‘bp_include’, ‘bp_em_init’ );2.) into theme’s functions.php
function my_remove_em_nav() {
global $bp;bp_core_remove_subnav_item($bp->groups->slug,’group-events’);
bp_core_remove_nav_item( ‘events’ );}
add_action( ‘bp_setup_nav’, ‘my_remove_em_nav’ );
- The topic ‘[Plugin: Events Manager] Disabling Groups' Events in Buddypress’ is closed to new replies.