I am trying to create a custom user profile/my account page. I'd like to include name, email, and password. I've figured out how to show and edit name, but I can't figure out how to show the email and password fields.
Per the documentation, I've included the id "rwmb-user-info" in my shortcode id list but nothing is showing:
[mb_user_profile_info id="my-account,rwmb-user-info" submit_button="Submit" confirmation="Your information has been successfully updated." label_submit="Update"]
The id of "my-account" is a custom field set with
last_name I've tried adding fields with id's of
How do I include password? How do I include email?
Any word on this? This issue is holding back the deployment of a feature on our website.
Hi Purdue, this is a bug in our AIO plugin. Are you using it?
To fix this, please use the MB User Profile extension separately at the moment. We'll fix the AIO soon.
That worked! But how do I allow users to change their email as well?
I'm also wondering if the user may edit their Email Address using the MB User Profile plugin?
I tried putting an "email" field in the "default-fields" group but it doesn't update their profile.
To edit user email, simply create a meta box (or a new field in an existing meta box) with id
user_email. And then include the meta box into the shortcode. Here is the code I used to test.
user_email seems to work for updating the address in the profile.
But on the frontend, it is not pre-filled with the user's default email address until the user updates it using the
Can I make it auto-populate the
user_email field with their account email address by default?
Also in the backend "Edit users" page, the profile fields appear twice. If I change the (WordPress standard) email field, but not the MB field, they become out of sync. Is this expected, or should there be only 1 of each field?
Yes, it's possible to auto-fill the current user email. See the updated script.
Regarding edit user profile in the back end, this technique is meant for use for editing user profile in the front end only.
Thanks! This is very helpful to know.
Hello, I am looking at the script that allows to change the email of the account, originally in wordpress when changing an email in the back end, the user receives in the email a link to confirm this change, already in the script this does not happen. Is this behavior correct?
how can I make the user at least need to confirm the password before changing the same email in facebook settings?
Hi Infolu, you just need to include the meta box with ID
rwmb-user-info to the list of meta boxes in the shortcode, like this: