Skip to:
Content
Pages
Categories
Search
Top
Bottom

admin-editable-only Profile Fields

  • Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Hello

    Does anyone know how I might go about writing a plugin to allow certain Profile Fields to only be edited by an Admin? I’d like to eventually have a “rank” or similar profile field in my community which I would want to set manually for each user, and not allow them to change it themselves.

    Regards,

    DJPaul

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve encounter the same requirements for a profile field to be editable only by admin that is non-editable by suscribers.
    Someone could eventually commit a small plugin that allows this sort of administrative tagging.

    Outside of buddypress perspective, I end up using wp_usermeta database table with a call to add_user_meta($user_id, $meta_key, $meta_value [, $unique] ) and when i need the info stored i use get_currentuserinfo()
    references :
    https://codex.wordpress.org/Function_Reference/add_user_meta

    https://codex.wordpress.org/Function_Reference/get_currentuserinfo

    Profile photo of clinthorner
    clinthorner
    Member

    @clinthorner

    I have the same requirements. I guess I am not advanced enough to use the solution posted above. I tried messing with the solution above but am really getting nowhere. Can you elaborate on this? Does anybody else have a solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘admin-editable-only Profile Fields’ is closed to new replies.