WordPress.org

Forums

Front-End Only Users
[resolved] How do I disable specific fields from editing in profile? (13 posts)

  1. CarolLeung
    Member
    Posted 2 years ago #

    How do I disable specific fields from editing in profile? I want those fields such as DOB and Gender to appear in registration, but disable those fields from user editing from then on, however, other fields such as name and email can be updated.

    https://wordpress.org/plugins/front-end-only-users/

  2. Rustaurius
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Carol,

    That's an interesting feature request, but unfortunately it's not possible at this time. We'll look in to adding it in next week's update.

  3. CarolLeung
    Member
    Posted 2 years ago #

    I noticed that also applies to the password entry in registration, but password editing does not appear in profile. How does that entry go about? I was wondering if that function would be similar to disabling entry editing for my DOB and Gender in profile editing, but appears in registration.

  4. Rustaurius
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Carol,

    Passwords and usernames are special cases, because they're stored in a different table. There's a separate shortcode for editing them.

  5. CarolLeung
    Member
    Posted 2 years ago #

    Can DOB and Gender entries also be stored in separate table?

  6. CarolLeung
    Member
    Posted 2 years ago #

    ...or can I at least have those entries not appear in profile editing page?

  7. Rustaurius
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Carol,

    We're going to add an attribute to the [edit-profile] shortcode to allow admins to omit some fields from the "Edit Profile" page when we release the next version later this week.

  8. CarolLeung
    Member
    Posted 2 years ago #

    Okay, thank you very much ^o^

  9. nikitabuida
    Member
    Posted 2 years ago #

    Hi guys,
    I'm looking forward to seeing this feature implemented. I'd also "vote" for some sort of hidden fields, that are not visible to the user. This way I could give users pre-filled user profiles there they are not able to change some fields.

  10. Rustaurius
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Carol,

    The update to disable certain fields in the "Edit Profile" form has been released. You can add the attribute "omit_fields" to leave fields out of your form now:

    `[edit-profile omit_fields='First Name,Last Name']

  11. CarolLeung
    Member
    Posted 1 year ago #

    Thank you, I omitted the fields, Is there a page where you display the entire user profile, not for editing, but text only?

  12. nikitabuida
    Member
    Posted 1 year ago #

    There seems to be the problem with omit_fields. If I omit several fields and user edits her profile then omitted fields are just saved as blank.

  13. Rustaurius
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Carol, there's no way to display a user's entire profile as text only. Interesting feature request though.

    Nikita, please let me know if that's still the case after the update this evening (version 1.12).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.