Title: php coding for exclude activity, menu and groups
Last modified: August 20, 2016

---

# php coding for exclude activity, menu and groups

 *  [Flora1234](https://wordpress.org/support/users/flora1234/)
 * (@flora1234)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/php-coding-for-exclude-activity-menu-and-groups/)
 * <?php if ( is_user_logged_in() ) : ?>
    [whatever menu items you wish to hide 
   from public] <?php endif; ?>
 * What i want to do is to hide or block activity, member and groups from non members.
 * I have used wordpress access plugin but it only hides pages you have created 
   yourself rather than buddypress activity, member and groups.
 * So how do I put activity, member and groups in the above bracket. Do I use full
   stops or commas to separate them.
 * <?php if ( is_user_logged_in() ) : ?>
    [activity, members, groups] <?php endif;?
   >
 * Please help. I will put this in the header above nav in buddypress.
 * Please help

Viewing 1 replies (of 1 total)

 *  [d00dahman](https://wordpress.org/support/users/d00dahman/)
 * (@d00dahman)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/php-coding-for-exclude-activity-menu-and-groups/#post-2303470)
 * I would like the solution to this problem as well. If a visitor to my site has
   not registered, I do not want them to be able to view the list of members, the
   groups, the forums, or the activities of the site. I have installed Private! 
   WordPress Access Control Manager, and Absolute Privacy plugins, and neither of
   them accomplish this type of restriction. I am using BuddyPress 1.5.2, bbpress
   2.0.2 and WP3.3.

Viewing 1 replies (of 1 total)

The topic ‘php coding for exclude activity, menu and groups’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [d00dahman](https://wordpress.org/support/users/d00dahman/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/php-coding-for-exclude-activity-menu-and-groups/#post-2303470)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
