admin管理员组文章数量:1122832
I want to greatly restrict the user's authority in the website. I don't want to give the user access to the admin console but I do want to allow the user to edit their username, email, and password.
Everything I've done so far is custom (lots of wp_query) and so I haven't used any plugins yet and would like to keep it that way if I can. Therefore, is it possible to create a custom page where the user can edit their username, email, and password?
I want to greatly restrict the user's authority in the website. I don't want to give the user access to the admin console but I do want to allow the user to edit their username, email, and password.
Everything I've done so far is custom (lots of wp_query) and so I haven't used any plugins yet and would like to keep it that way if I can. Therefore, is it possible to create a custom page where the user can edit their username, email, and password?
Share Improve this question asked Jan 27, 2017 at 19:33 lurning too koadlurning too koad 6192 gold badges7 silver badges13 bronze badges 2- Hi, i worked a lot about this. The best way to do it is to use a pluing like ultimate member or pie register. If you code it yourself, you will probably end up with a security problem. – Johansson Commented Jan 27, 2017 at 20:18
- WP allows custom log-in forms that still posts the form through the core wp-login.php file. You don't think we can create a custom form that edits the user's password through whatever core php file WP uses to edit passwords? – lurning too koad Commented Jan 28, 2017 at 17:20
1 Answer
Reset to default 0Assuming that you want to show only some Admin page items to a user-type, this page might get you started: https://www.johnparris.com/how-to-restrict-access-to-menu-items-in-the-wordpress-admin/ . Not much detail there, but might get you started.
You would then limit access based on the person's login level (Editor, Subscriber, etc). Or create a new login-level, and use that to limit access.
To get started on admin access levels and what they can do, start here: https://codex.wordpress.org/Roles_and_Capabilities That page contains links to plugins that might do what you need (or that can provide you a starting point to creating your own plugin)
本文标签: Is it possible to create a custom admin page for users
版权声明:本文标题:Is it possible to create a custom admin page for users? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736290931a1928616.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论