Suggestion: create fields on the fly in BP 2.1
-
Since BP 2.1 (coming out soon) it’s possible to filter the xprofile group query with the
bp_xprofile_get_groups
filter without recreating the entirebp_has_profile
query. I think this enables the plugin developer to create the First Name and Last Name profile fields on the fly, after BP queried the profile groups with its fields. Setting the profile data for these fields would only be a matter of copying the logic fromBP_Groups_Group::get()
.My guess is that this would in turn create a situation where the profile field data does not have to be deleted on plugin deactivation, simply because the fields would not be queried when they’re not self-existent in the DB as fields. So only the data would remain in the DB, not the fields themselves.
I’d be willing to fork your Github project if you’d prefer that.
https://www.ads-software.com/plugins/bp-xprofile-wp-user-sync/
- The topic ‘Suggestion: create fields on the fly in BP 2.1’ is closed to new replies.