Role Based Fields

Trying to work out how to create fields for User Registration that are only visible to Administrators and other non-s2Member Level roles.

Basically I have role levels set up for free membership / paid pending / paid current. I want to add a field for an administrative role (not necessarily Administrator) to update the year in which the member paid. The field should not be able to be edited by 0, 1, 2, 3, 4, all but should be editable by Administrator and UserManagement roles (as defined in WordPress).

WordPress seems to have plugins that can restrict fields to Roles. Is there one that adds on to s2Member (using the Pro version).

TIA

WordPress already makes this possible on the admin pages.

Thanks Tim

I’m newer to WordPress than s2Member at the moment.

Found a workable solution as follows

  • By adding capability “Edit Users” the fields in s2Members that are not editable after registration become editable to the role with that capability.
  • New registrations will see the field (and can update it - like to know how to stop this) and then it will be up to the user administrator to correctly maintain these admin data points.

s2Members suggestion
New profile edit option
Allow Profile Edits: No (Invisible during registration / uneditable after registration)

This will allow a field to only be available for administrators looking after custom special fields for users.