Answer the question
In order to leave comments, you need to log in
How to get to an array within an array?
Hello. There is a function bp_profile_get_field_groups() , if you look at its contents using print_r , you can see a huge sheet with values, I will give just the beginning as an example:
Array
(
[0] => stdClass Object
(
[id] => 1
[name] => Base
[description] =>
[group_order] => 0
[can_delete] => 0
[fields] => Array
(
[0] => BP_XProfile_Field Object
(
[id] => 1
[group_id] => 1
[parent_id] => 0
[type] => textbox
[name] => ФИО
[description] =>
[is_required] => 1
[can_delete] => 0
[field_order] => 0
[option_order] => 0
[order_by] =>
[is_default_option] => 0
[default_visibility:protected] =>
[allow_custom_visibility:protected] =>
[do_autolink] =>
[type_obj] => BP_XProfile_Field_Type_Textbox Object
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question