Statistics: Posted by Cristián Lávaque — July 26th, 2011, 2:51 am
/* Place this code in wp-content/plugins/buddypress/bp-themes/buddyboss/functions.php to
* remove the 'Media' link from appearing on non-premium profile pages. You can paste it around line 26.
*/
// Remove the 'Media' link from the menu appearing on the left-hand side of the profile page,
// *if* the profile owner isn't a premium member.
//Load the user associated with the profile we're browsing.
$user_profile = new WP_User( $bp->displayed_user->id );
//Check profile owner's access level. This depends on the s2member plugin.
if(!$user_profile->data->wp_capabilities['s2member_level2']){
unset($bp->bp_nav['media']);
}
// END
Statistics: Posted by johnegg — July 25th, 2011, 3:04 pm
Statistics: Posted by Cristián Lávaque — July 25th, 2011, 1:52 pm
Statistics: Posted by Cristián Lávaque — July 22nd, 2011, 11:03 pm
Statistics: Posted by johnegg — July 22nd, 2011, 4:19 pm
Statistics: Posted by Cristián Lávaque — July 22nd, 2011, 2:40 pm
Statistics: Posted by johnegg — July 22nd, 2011, 3:08 am