Replies
- y2gabs on October 17, 2019 at 3:47 pm in reply to: [Resolved] Restrict BP users from viewing other's profile based on role #26001
That worked !!
Thanks!
J.
- y2gabs on October 16, 2019 at 9:22 pm in reply to: [Resolved] Restrict BP users from viewing other's profile based on role #25958
This is what I’ve tried so far:
add_action( ‘Prevent_Tenant_From_Others_profile’, function() {
if ( bp_is_user_profile() ) {
$user_meta = get_userdata( bp_loggedin_user_id() );if ( in_array( ‘tenant’, $user_meta->roles ) ) {
wp_redirect( home_url() );
exit;
}
}
}, 1 ); - y2gabs on September 24, 2019 at 9:16 pm in reply to: Array of user IDs for specific member type #25475
Thank you sir! How would I add a comma inbetween each ID when calling the variable if using your example above?
- y2gabs on September 24, 2019 at 9:13 pm in reply to: Filter for specific members type in the members loop #25474
Oh no, my bad. I am not creating a custom loop, I’m creating a custom page template with a members loop inside of it. Basically each page template will be a loop filtered for a specific member type. Does that make sense?
- y2gabs on September 23, 2019 at 5:37 pm in reply to: Filter for specific members type in the members loop #25439
Hi Brajesh! Thanks so much for your reply here! I actually don’t know where to start with an example using the bp_has_members hook in a loop. Are you able to provide me with a snippet that I can start with that includes filtering for a member type?
Thanks again!
- y2gabs on September 23, 2019 at 4:21 pm in reply to: Array of user IDs for specific member type #25437
Hi Brajesh! thanks so much for your reply here. Would it be possible based on role instead? otherwise yes please post an example described above. Thanks so much!
- y2gabs on September 21, 2019 at 2:23 pm in reply to: Filter for specific members type in the members loop #25404
Thanks very much for your reply! I’m having a tough time finding the best syntax implementation of what you describe above. Can you elaborate with an example. Thanks again!
- y2gabs on January 8, 2019 at 7:36 pm in reply to: Member Types Pro filter in URL for specific member type #20066
Hi there, assume I have two member types (“employers” and “employees”). If I want to provide a link to a filtered list of all employees, is there a way to do so using a filter in the URL string like http://www.mybuddypressSite.com/members?=employers or something?
- y2gabs on December 13, 2018 at 7:17 pm in reply to: [Resolved] buddypress Deactivate Account Plugin #19471
Hey there, I see that the plugin was updated but is there any reference docs to understand how to include the deactivate button in the members loop?
Thanks!
- y2gabs on December 6, 2018 at 2:38 pm in reply to: [Resolved] buddypress Deactivate Account Plugin #19292
Absolutely. Thank you sir!