WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
Add more WP native fields to user registration fields (3 posts)

  1. mlhat
    Member
    Posted 1 year ago #

    We're using WP Members to manage user registration and settings, and I'd like for members to also be able to set up/edit their display name when they register or update their settings. This is already a native field in the wp_user database so I don't want to make a new custom field, I just want to be able to edit that particular setting using the WP Member front end.

    Can this be done? I thought perhaps adding it to the wpmem_fields_options_arr in wp_members_install.php, but then thought maybe I'd just better ask. ;)

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    That does make sense. You should be able to do it without too much trouble if you are doing it as a text input field. If you need a dropdown like the "display name publicly as," then getting the values to populate would be a little trickier.

    It would probably be best to do it in the install (although you'd have to use the $chk_force process commented in the install file to reload the fields in the database).

    You could add them via the field manager (the plugin's fields tab), but that would double them up on the user profile on the admin side as the extra fields are shown if they are not WP native fields (since the native fields are already shown there). I'm not sure what the results would be if you did it that way.

    If you go the install file route, make sure the array value for 'native' is a 'y'.

  3. mlhat
    Member
    Posted 1 year ago #

    Thanks so much for the quick reply! I plan on trying it in the install file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic