#6237 closed enhancement (no action required)
Restrict posts based on buddypress groups
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.2.1 |
Component: | Core | Keywords: | |
Cc: | studio@… |
Description
Hey,
I have a suggestion to enhance Buddypress.
I was wondering whether an it would be possible to enable posts restriction and/or menu items restriction based on buddypress groups.
For posts, I would be expecting a new metabox when creating a post where I would check groups who are able to see the post.
For menus items, I would be expecting the same in Appearance-> Menus.
Best wishes.
Change History (4)
#2
@
10 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
Hi @whoaloic
Thanks very much for contributing to BuddyPress by sharing your idea! We appreciate it.
I think your suggestion has merit, and it's interesting. As @hnla mentioned, I think it's an idea that would need to start out as its own plugin, and if it was super popular, we could consider merging it into BuddyPress in the future.
#3
@
10 years ago
Thank you both of you @hnla and @DJPaul for your answers.
For now, I try user https://wordpress.org/plugins/user-access-manager/ that allow to create groups (but I have to duplicate BP groups) since the User Access Manager plugin does not synchronize with BP groups.
I think that's a good solution anyway.
I also try https://wordpress.org/plugins/wordpress-access-control/ which allow restriction to posts, menu items, or widgets but the restriction is based on roles so it does not work with groups.
I did not try S2Member yet.
It's good to know that my suggestion has interest @DJPaul.
This sounds firmly like plugin territory, rather than a core function, it's too particular also you can probably achieve this quite easily with existing plugins, something like S2 member to restrict content and that allows you to hook into the restrict function to allow an ID or group name to be used, or a plugin that generates CMB and which you could then enter group id to and later, on post visit, do a simple-ish comparison between the members/loggedin_user_id group id if any and the posts custom meta group id; So not necessarily a hard thing to accomplish with existing plugins or a little bit of custom coding.