Custom Development
-
Hello,
I’m trying to develop an integration among BuddyPress and VikAppointments for one of our customers. This is the first time I dig into the BuddyPress framework and I’m unable to figure out how the fields-data mapping works.
I tried to use the
bp_profile_field_data
function, but I get an error saying the latter hasn’t been declared. Doesn’t BP use a sort of autoloader?I also tried to look at the database structure, and in the user meta table I noticed that the values of the custom fields are structured in the following way:
`
meta_key | meta_value
wbbpp_1715763478_1715763523 | Ford
wbbpp_1715763478_1717482765 | Abarth
`
What do
1715763478
,1715763523
and1717482765
stand for? I’m unable to see those identifier in other tables used by BP.There’s also a
wbbpp_userdata
record containing a serialized version of all the custom fields. But the problem is that if I manually edit those details, the new values are not applied in the front-end.In a few words I would like to know:
- How can I retrieve the user custom fields?
- How can I update the user custom fields?
I’ll be waiting for some clarifications.
Best Regards
Matteo
- You must be logged in to reply to this topic.