How to get the value of a profile field of specific profile field group?
I’m trying to figure out what is the most efficient way to get the value of a ‘profile field’ that belongs to a specific ‘profile field group’.
Knowing the ‘field name’ and the ‘profile group name’ I’m thinking of the following:
$field_value = bp_get_profile_field_data( array( 'field' => $field_name, 'user_id' => $user_id, 'profile_group_id' => $group_id ) );
Is there a standard BP API function that returns the ‘profile field group’ ID from the group’s name? I’m looking for something like
xprofile_get_field_id_from_name()but for field groups.
Thanks in advance!
- The topic ‘How to get the value of a profile field of specific profile field group?’ is closed to new replies.