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
Add a comment  | 

1 Answer 1

Reset to default 0

Assuming 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