简体   繁体   中英

Custom Wordpress Dashboard for custom user role without a plugin

I am creating a page where a certain type of user upon login should only be able to see my plugin dashboard (or a custom php file), without the WordPress dashboard. Is there a way to do this without an extra plugin?

I am currently using Advanced Access Manager as a way of restricting that given user type of accessing anything else in the dashboard.

I would like to get to a similar result if possible hide every Wordpress-like element or style it to my own design. And I would like to achieve it without using an external plugin or editing the functions.php

您可以执行自定义页面模板,检查用户是否进入,然后提供功能,然后具有订户角色的用户可以访问该页面,因为他们被输入。执行自定义登录表单,并在成功登录后重定向到该自定义页面。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM