-
David Cavins replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 8 years ago
Hi @auctionarmory–
That looks promising! The only way you can know if it “works” is by trying it in your environment. Create a couple of test users, one who’s got the somewhat elevated role of “vendor” and one who’s just a subscriber. Then try it when logged in as your test users. If your vendor can do create groups, but your subscriber can’t…[Read more]
-
TheArmory1 replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 8 years ago
we allow vendors to post products so could we use something like this?
add_filter( ‘bp_user_can_create_groups’, function( $can_create ) {
$can_create = false;
if ( current_user_can( ‘edit_products’ ) ) {
$can_create = true;
}
return $can_create;
} ); -
David Cavins replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 8 years ago
See above for a list of user capabilities by role:
2) Choose the users that you want to enable (to create groups). Get the list of WP capabilities for each of them from here (or use a role/capability editing plugin):
https://codex.wordpress.org/Roles_and_Capabilities
Choose one capability which is only shared by those users that will have the…
-
TheArmory1 replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 8 years ago
Where do we find the users capabilities?
We are having a lot of issues with this. Is there a way to “review/ pending for approval” the groups before going live.
-
TheArmory1's profile was updated 8 years ago
-
Rob Schneider's profile was updated 8 years ago
-
Jaime Wiersma's profile was updated 8 years ago
-
Jonas replied to the topic How to add report/block member option? in the forum How-to & Troubleshooting 8 years, 1 month ago
-
Allen Fletcher's profile was updated 8 years, 1 month ago
-
Jonas replied to the topic How to add og:title and og:description meta tags for Facebook on BuddyPress. in the forum How-to & Troubleshooting 8 years, 1 month ago
There’s different ways of solving it, you can look to this old post for some pointers.
or you could do something like this
<?php
function opengraph_tags() {
// defaults
$title = get_bloginfo('title');
$excerpt = get_bloginfo('description');if( bp_current_component() ) {
global $post;
setup_postdata( $post);…[Read more] -
VEF Voog Blog's profile was updated 8 years, 1 month ago
-
Hollyx Parker's profile was updated 8 years, 1 month ago
-
Jasa SEO di Indonesia's profile was updated 8 years, 1 month ago
-
Sewa Kamera Jogja Murah's profile was updated 8 years, 1 month ago
-
Harold Torres's profile was updated 8 years, 1 month ago
-
Suzain Lian's profile was updated 8 years, 1 month ago
-
Alex's profile was updated 8 years, 1 month ago
-
Houston Capital Home Buyers's profile was updated 8 years, 1 month ago
-
Julien BERTHIER replied to the topic Keymaster two Avatars in the forum How-to & Troubleshooting 8 years, 1 month ago
Hi there 🙂
Up this question if anybody may help…..? -
Anna Marsh's profile was updated 8 years, 1 month ago
- Load More