Posted: July 19, 2016 at 11:59 am
|
Once a user has registered, is there a way to restrict their own ability to edit their name and email in the account settings? The way our system/model is set up, this could potentially create some headaches and issues for us. Thanks. |
Hi there, This is more of a general WordPress question and not specifically unique to Event Espresso. You can find some potential solutions from these other sources: https://wordpress.org/plugins/disable-user-modify-profile-page/ |
|
|
Thanks Josh. Would this also apply to the ATTENDEE 1 box – “Personal Information” (First Name, Last Name, Email Address) – on the Registration Checkout page? I’d like that to always match the user name and email address and don’t want to give anyone the ability to change the data right before/during checkout. Whoever is logged in, that data should always be used for name and email. Thanks. |
No those don’t directly apply because your question was about the user profile page. That said, there is a setting for the WP User Integration add-on that disables the user profile sync. You can change this setting by going to Event Espresso > Registration Form > User Integration Settings. The setting is Always sync contact information with WP user profile?. When this option is set to No, if they do make any edits to the autofilled First Name, Last Name, Email fields on the registration form, those edits do not edit the user account data. |
|
|
“When this option is set to No, if they do make any edits to the autofilled First Name, Last Name, Email fields on the registration form, those edits do not edit the user account data.” I’m actually not wanting them to have the ability to change the autofill. The data needs stay whatever is autofilled. Is this possible? Or at minimum, I guess I could just try some CSS to hide the whole Attendee 1 box? Could I get some help in identifying that class (since it’s not easy to generate that page)? Thanks. |
One way to achieve what you’re after is you add a bit of JavaScript to the page that changes those auto-filled fields to be read only. You’ll find some example code in this github gist: https://gist.github.com/joshfeck/38ef04e39c92f7e550005c9784700da0 You can add the above to a functions plugin or into your WordPress theme’s functions.php file. |
|
The support post ‘Restrict editing some user account data?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.