Replies
- Brajesh Singh on February 7, 2022 at 8:26 pm in reply to: [Resolved] Xrofile field visibility change by php function #43054
Hi Abhist,
Welcome to BuddyDev forums.Thank you for the question. Here are my answers.
1. The profile field visibility is a BuddyPress core feature and has nothing to do with teh xprofile cusotm field types plugin.
2. You can not change the visibility for a user. It is saved for each field of the user. So, if you have 20 fields, you will need to update it for all the 20 fields.
Here is the function which is used to set it
xprofile_set_field_visibility_level( $field_id, $user_id, $visibility_level );Where $field_id is the numeric xprofile field id.
$user_id is the numric id of the user in context.
$visibility_level is a string which is one of the registered visibility levels(e.g ‘loggedin’).Hope that helps.
PS:- The visibility setting is stored in user meta, so if you wnat to avoid too many queries, you can directly update the user meta key ‘bp_xprofile_visibility_levels’ with an associative array containing field id as key and its visibility as the value.
Regards
Brajesh - Brajesh Singh on February 7, 2022 at 8:16 pm in reply to: [Resolved] Buddyblog Pro – allow user to select only one category when posting #43053
Hi Niculae,
Thank you for the question.No, That won’t work with BuddyBlog pro. There should be an easy option for it in BuddyBlog pro.
Please allow me to push an update within next 2 days to make it available as the taxonomy options.
Regards
Brajesh - This reply has been marked as private.
Hi David,
I am sorry to hear about that. The BuddyPress lead developers are kind and do consider features.The buddypress.org forum is run by volunteers and there is a possibility that some of them may not following the same ethic as the lead developers.
Please create a new ticket here
https://buddypress.trac.wordpress.org/The trac is used for reporting bug as well as managing feature requests and I am sure you will be happy with the outcome.
Regards
Brajesh- Brajesh Singh on February 7, 2022 at 7:52 pm in reply to: [Resolved] BuddyCommerce – Subscription AutoRenew toggle #43048
Hi Ownen,
Thank you for sharing.
I hope it will be useful for others.Regards
Brajesh - This reply has been marked as private.
- This reply has been marked as private.
- Brajesh Singh on February 5, 2022 at 11:22 pm in reply to: [Resolved] Featured Members plugin not showing in Users profiles for Admin #43024
Hi Eric,
Welcome to BuddyDev.Which theme and template pack are you using? My guess is your theme or template pack does not have the proper hook in the profile header if it is not visible.
Regards
Brajesh - This reply has been marked as private.
Hi,
I am not sure of the reason. Please try sync and see if that makes it work.Regards
Brajesh