Replies
Thanks for the updated code
I am using the profile privacy plugin and while using your updated code I am receiving the 404 error correctly but the url is in this format https://site.com/members/mike/visibility-protected/.
I dont think it’s cool to show the (visibility-protected) slug for admins since it reveals that the admin account is available but just hidden
The main reason why I want the restricted profile fields in another profile field group is because of user experience with logged in users who are editing profile fields.
1. conditional visibility feature does not work for users who are editing profile fields so all restricted profile fields are visible to users which is a poor user experience.
2. Separating the restricted field into another field group would be a better experience since logged in users first need to save their chosen member type option in the primary field group before they can save the corresponding restricted profile field in the custom profile field group.