Reply To: Custom profile fields on BP multisite
I’ve been staring at the code for a while and it’s starting to make sense.
I’m not great with databases but looking at the function I gather it changes a few fields into primary keys that point to the data table so fields can be individual.
It runs the table modification code on the dbdelta_create_queries hook.
The wordpress codex seems to say that this action will happen anytime a database or a table is created.
Am I right in saying that this only ever has to be run once? Can I just run it once on admin init then remove it and add the modify_bp_global_xprofiles_tablenames at runtime or have I misunderstood it?