Put still a field “name” is also the field title, right?
So if I would try to make the name very unique.
Like “unique45myField” this would be something that is user-facing, right?
As the ID can be different in each installation I should rely my system on the field name. But if the field name is visible to the user, I should not go wild with it.
I feel a bit stuck in this thought loop.
Are the plugins who add xprofile fields to BuddyPress? How are they doing it?
Could it make sense to overwrite the field name for display via a filter or so?
That filter could do it:
bp_get_the_profile_field_name
Then I could work internally with a very unique field name and just overwrite it for display.
Dirty workaround but would likely give me better sleep 🙂
Or is xprofile anyway not the best idea and there is another, more suitable way to add profile fields to BuddyPress profiles?