Tagged: Profile tab
I want to add a couple of extra tabs to user profile where users can add details about emotional support groups they run and courses they offer but not every member on my buddypress site will be offering these services. So is it possible to allow them the option whether or not do they wish to show these options on their profile tabs. So probably I can have two yes/no Xprofile fields with questions:
1. Do you conduct support groups? and
2. Do you offer courses?
If the user answers yes then the relevant profile tab is shown on their profile.
Any suggestion on how to do this?
Thank you for the question.
This is doable but there is pre-made solution for this. Most probably you are adding tabs using custom code. All you need there is to check using xprofile_get_field_data( $field_name_or_id, $user_id ), the user preference and add tab accordingly.
You must be logged in to reply to this topic.