[CODE FIX] Buddypress Attending Tab: conditional loading
-
Hi @netweblogic,
I’ll report another bug in the following file:events-manager/buddypress/bp-em-core.php#L101
Bug Description:
Attending tab must be activated only if the booking reservations are enabled. (currently it is always displayed, even if rsvp is disabled)How to fix it:
if( get_option('dbem_rsvp_enabled') ) { // Additional check condition $sub_nav[] = array( 'name' => __( 'Events I\'m Attending', 'events-manager'), 'slug' => em_bp_get_slug( 'attending' ), 'parent_slug' => em_bp_get_slug(), 'parent_url' => $em_link, 'screen_function' => 'bp_em_attending', 'position' => 20, 'user_has_access' => bp_is_my_profile() // Only the logged in user can access this on his/her profile ); }
Regards,
Raruto
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[CODE FIX] Buddypress Attending Tab: conditional loading’ is closed to new replies.