Basic implementation:
- Create a page for the frontend (and optionally a template).
- Then add the following code to your
functions.php
:
function login_redirect_capability() {
if ( current_user_can('author') || current_user_can('editor') ){
return 'url-of your custom page';
}
}
add_filter('login_redirect', 'login_redirect_capability');
This will redirect them to the page you created. If you want to recode the dashboard as in the WordPress admin backend, you can look at the code in this plugin to see how it’s done. However, if you’re new to this, I highly suggest against that. An alternative to a backend dashboard would be something like this.
If you have a site that requires members I suggest looking into using a membership plugin which would make that a whole lot easier.
Related Posts:
- Changing Admin Menu Labels
- Remove dashboard, use Pages tab as default
- Add “external” link to admin menu in the backend
- How to display the user that published a pending post?
- How to remove the site health dashboard widget?
- Copy my user account’s wp-admin dashboard layout to other users?
- Make sub menu items a main link in the admin menu using fuctions.php
- How to disable or hide “collapse menu”
- Dashboard links not working
- Removing admin bar from wordpress dashboard
- Can’t access dashboard, connection times out (other pages work fine)
- wp-admin does not redirect to dashboard
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- Show Welcome Panel on Dashboard for every user
- Prevent /wp-admin/ from redirecting to homepage?
- How do I set the homepage to the WordPress Admin Dashboard login?
- Create a fullwidth dashboard widget
- Locked Out Of WordPress Admin Dashboard After Server Move
- Wp-admin is giving me an error “Sorry, you are not allowed to access this page.”. I do have access to the wp-admin besides the dashboard itself
- WP-Admin shows (1) update but there is no update for plugin, theme or WordPress
- White screen of death in Dashboard after clean installation
- How do I let logged out users see the dashboard?
- How can I replace dashboard.css and dashboard.min.css (not add new css)
- WP admin user search doesn’t return all users
- can not access wp-admin after migrating to openshift
- How do you force the wordpress dashboard to be 1 coulmn by default?
- How to remove dashboard access (wp-admin) for author but not disable the capabilities?
- always by default show welcome panel in the dashboard
- Dashboard Widget CSS
- Admin top level menu, pointing to an external url
- how can I change the font on Edit Post area (admin dashboard)
- Dashboard : remove Safari navigator message
- Move WooCommerce menu entries to top of dashboard
- Change maxlength of link_description in dashbord link section?
- Trying to create a page as a menu item in the admin while keeping the admen panel visible
- Broken Customizer page
- I can’t access my wp admin dashboard
- Step by step guide for new users on how to post content?
- How to log into WordPress via GET/POST
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- Getting 404s in wp-admin after logged in
- Admin section showing CUSTOM Permalink structure thus resulting in permission error [closed]
- Unable to access dashboard (wp-admin) only
- Launch wordpress site to local computer from live website backed-up
- All of my WordPress sites have Bold Open Sans
- How to make the Panel // WP-Admin lighter via Mobile
- How can you change the admin dashboard URL without symlinking?
- Disable image attachment links
- Remove “Time to upgrade” message from dashboard
- Looking for a hook to add attachment information to the media library tab
- How to move wp-admin login page to another location? [closed]
- WP-admin giving 404
- How to control contextual help section by code?
- Can’t access wp-admin Internal Server Error 500
- Add custom text to Page Tamplate without need to know html
- Move WP Admin Bar
- Get Stylesheet To Showup in WP Admin Panel Editor
- Just how ‘expensive’ is this function?
- Custom Background-Image not showing up
- Custom roles showing HTML entities in title form field
- How to show postmeta in custom columns for the posts screen?
- disable a wp javascript on live website, but not on wp-admin page
- How to stop – Database Update Required – from happening again?
- Can’t login to Dashboard when changing site URL to HTTPS
- Limit access to wp_admin
- Not Found (404) error on admin page, CSS gone on blog
- WordPress server change – slow admin login time for first time
- I can´t access my admin panel. I tried all possible solutions
- Ajax solution similar to WP Categories functioning in Admin area
- Difference between admin and user admin
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Editing edit-tags.php page in wp-admin
- What is the correct way to get only display plugin for Administrator Only
- displaying an error before update_post_meta
- WP admin style not refreshing
- Outputting something based on the presence of post variable in admin screens
- “Add New” button on custom post type grid
- Where is function to prevents non logged users access wp-admin?
- CSS of the admin panel
- WordPress admin right sidebar isn’t working
- WordPress menu to change page title
- wp-admin blocking causing http error on uploads
- DISALLOW_FILE_EDIT is false but I still am not able to edit files from the admin interface and the menus do not show up
- What hooks should you use to create a table only once?
- Cant access wp-admin
- Hi everyone, I have Problem with using wp_die()
- WordPress wp-admin Page
- How can I trigger a javascript function after a post update on edit post screen in wordpress admin panel?
- restrict admin panel sections to users
- how to set not to be logined in wp-admin except administrator?
- Disable flyout (popup) menus in backend
- WordPress, content editor default type
- WordPress Login for multiple sites
- Blank sign in page
- Action for opening edit page in admin?
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- Redirect users based on their roles, is_admin()
- insert an admin table inside another admin page
- /wp-admin/ – this link showing me “Index of /wp-admin”/ instead of dashboard