You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a site with a RH field linked to a BP xProfile field
Set the xProfile field to have a default visibility of "Only Me" and allow members to override it
Sign up as a new user via PMPro Checkout or PMPro Add Member
As a non-user, visit that new user's profile and see that the xProfile field is visible despite "Only Me" being the default option
When a user is registered on the site via Users > Add New, the field is correctly hidden. BuddyPress must be hooking into that process to generate the usermeta field that holds field visibility info (bp_xprofile_visibility_levels). We should also generate that piece of usermeta whenever a user is added via PMPro.
Additional information:
xprofile_get_field_visibility_level() determines which fields are shown on profile. Doesn’t care about default values unless users are not able to edit visibility values.
xprofile_set_field_visibility_level() sets the visibility for a particular field. We should probably use this whenever a user registers with PMPro
bp_core_activate_signup() is one place where BuddyPress loops through xprofile_set_field_visibility_level() for new users. Either we should use this function or base our solution off of it.
Workarounds:
Until this has a fix in the add on, a temporary solution would be to hook into the core WP's user_register hook and call xprofile_set_field_visibility_level() for each of the RH fields that you created.
The text was updated successfully, but these errors were encountered:
We need to expand on this following 2.9's update as the default code that copies/sets data for xProfile fields from RH don't work now when using User Fields as the $pmprorh_registration_fields global appears to be empty.
We're going to need to possibly rework how we save RH data to xProfile fields with User Fields and then include the visibility params because the current code doesn't set the RH data to xProfile fields when updating a profile
Steps to replicate:
When a user is registered on the site via
Users > Add New
, the field is correctly hidden. BuddyPress must be hooking into that process to generate the usermeta field that holds field visibility info (bp_xprofile_visibility_levels
). We should also generate that piece of usermeta whenever a user is added via PMPro.Additional information:
xprofile_set_field_visibility_level()
for new users. Either we should use this function or base our solution off of it.Workarounds:
Until this has a fix in the add on, a temporary solution would be to hook into the core WP's
user_register
hook and callxprofile_set_field_visibility_level()
for each of the RH fields that you created.The text was updated successfully, but these errors were encountered: