The best way is to re-direct user logins to your page and also remove the dashboard from the menu, this can be done with 2 filters.
Redirect logins to your page edit screen example based on user roles, this example uses “author”:
function dashboard_redirect($url) {
global $current_user;
// is there a user ?
if(is_array($current_user->roles)) {
// check, whether user has the author role:
if(in_array('author', $current_user->roles)) {
$url = admin_url('edit.php?post_type=page');
}
return $url;
}
}
add_filter('login_redirect', 'dashboard_redirect');
Remove the “dashboard from the admin menu”
add_action( 'admin_menu', 'Wps_remove_tools', 99 );
function Wps_remove_tools(){
remove_menu_page( 'index.php' ); //dashboard
}
ps. You can also order the admin menu items using the same filter.
Related Posts:
- Changing Admin Menu Labels
- 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
- Custom WordPress Dashboard for Specific user role
- 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?
- How can we make managing lots of pages in WordPress Admin better?
- Use a different domain for SSL
- 3.3: How do you hide the new dashboard welcome panel?
- Adding a menu item in the admin bar
- how to force caching of wordpress admin
- Slow admin – waits and is blocked for a long time
- How to disable 3.3 Tooltips?
- wp login redirects to homepage
- jquery UI in wordpress admin
- Restrict access in wp-admin area?
- Retrieve Path of admin.php
- Display $pagenow error notice on all admin pages
- 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
- How to list newly ftp added HTML webpage under Pages section of 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
- Random HTTPs redirections at admin area in shared hosting
- WordPress Login for multiple sites
- Blank sign in page
- How to prevent Google adsense invalid impressions while performing admin tasks on my wordpress site?
- 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?
- Degraded WordPress admin dashboard performance [closed]