I’m working on my first wordpress site. I want to create a form which will allow a logged in user to edit their user_nicename .
I have two main questions about this.
How do I do this?
<form action=’?page_id=10′ method=’POST’>
New username: <br>
<input type=’text’ name=’username’><br>
<input type=’submit’ value=’Submit’ onclick=”>
Should I be doing this? Is there a better way? Because I think the theme of the website is likely to change, I’ve been using XYZ html/php snippets for everything.
Since I can’t seem to find much about updating user information through snippets, I’m wondering if I’m expected to do it some other way.
Read more here:: Let user edit their profile on the front end with a snippet