Hi Brajesh,
This is a great tutorial here –
https://buddydev.com/extending-buddypress-profile-field-visibilityI’m looking to adapt your code to include a specific profile type from BuddyBoss.
Is this the correct hook to use? – https://www.buddyboss.com/resources/reference/functions/bp_get_members_member_type_base/
Is your code possible to use a profile type as well as the super admin, and the owner? All other users and roles will not show the field to them.
Thanks.
Hi Ben,
Welcome to BuddyDev.No, That is not the right code.
you will need something like this.https://www.buddyboss.com/resources/reference/functions/bp_get_member_types/
My code is an example to show case how can you add extra levels and then restrict by these.
You can add whatever can be uniquely identified as level and then decide who can see it by restricting fields in the ‘bp_xprofile_get_hidden_field_types_for_user’ filter.
Regards
Brajesh
You must be logged in to reply to this topic.