Easy enough, decided to just do the redirect option. I used the wp_login
action hook. You could also probably use this for redirecting your users to ANY page on your website. You can also check user capabilities from the $user
Object passed in as a function parameter if you want to send different user levels to different pages.
/* Redirect the user logging in to a custom admin page. */
function new_dashboard_home($username, $user){
if(array_key_exists('administrator', $user->caps)){
wp_redirect(admin_url('admin.php?page=c2c-overview', 'http'), 301);
exit;
}
}
add_action('wp_login', 'new_dashboard_home', 10, 2);
Related Posts:
- 3.3: How do you hide the new dashboard welcome panel?
- Appearance->Editor not visible
- I keep getting logged out in Firefox
- How do I set the homepage to the WordPress Admin Dashboard login?
- Can’t access dashboard as administrator, login as any other level works though
- Unable to Access WP Admin or Login buttons after Migration
- Continuous Login Sessions For Super Admins Across Multi-Site Network of Sites
- Admin login not working
- Want to know who is login Admin/User
- Unable to render Admin Notices
- WordPress login not working
- What are the standard admin CSS id/class tags?
- Modal window from within WordPress admin
- How do I remove dashboard access from specific user roles?
- How To Remove WordPress Version From The Admin Footer
- Set Default Admin Colour For All Users
- How-to make the admin area mobile friendly [closed]
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Cannot access admin panel
- How can we customize the logo and some text on the welcome screen?
- Daily notices of failed login attempts for non-existent admin user
- Possible to create placeholder images in WordPress editor that are clickable (should bring up uploader)?
- Blocking Administrative Access to Authors and Subcribers?
- How to display only logged in user’s post comments in comments area
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- WordPress 3.8 get current admin color scheme
- How to Use Resposive Tables in WordPress ADMIN Pages?
- Which hook for processing plugin page form data?
- Add tabbed menu to admin page
- remove_action with profile_personal_options
- Getting the different post statuses + count like in edit.php, in a custom submenu page
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- how to redirect to url.com/wp-admin if url.com/admin is typed in?
- Change the Default Pages Menu View in wp-admin
- Change WP-Login or WP-Admin
- Error thrown. Cannot create references to/from string offsets
- Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
- How to disable automatic excerpt generation *in admin*?
- Cannot access wp-admin after disabling all plugin
- Associating custom submenu item with post type of top level menu item
- How to determine if an admin is logged in outside the loop
- How to solve 500 Error on WordPress Admin Dashboard due to time-out on getdirsize
- Adding text in more than one language (at the same time)
- How to get view count of every page on site and add that (increasing) number to Dashboard Widget
- Super slow admin panel
- Fatal error: Exception thrown without a stack frame in Unknown on line 0
- Hide Pages on Edit Pages based on Capability (edit_others_pages)?
- Using shared SSL for login/admin
- wp-login behind nginx reverse-proxy inaccessible — bad redirect?
- Dashboard menu missing
- Add ‘Last Modified’ and Attachments (Yes/No) to WordPress Users Column
- WordPress post feature image not uploading
- using rewrites to secure login page
- Modifying the built-in behavior of ajax tag type-ahead functionality of WordPress
- Client system for media review?
- Redirect from the dashboard to edit.php if wp_is_mobile() is true
- Seems that admin_post_{action} does not executing
- Unable to get to the admin panel
- When submitting the form site.com/blog/wp-admin it goes to site.com/wp-admin
- get_current_screen and the WP_Screen class
- Is there alternative to WP_List_Table?
- WordPress Brute Force Prevention
- Can’t login to my admin area
- Does deleting the table users prevent all logins?
- How to make sure your admin doesn’t hi-jack you site?
- Send admin to a different login than users?
- How to change the descriptive text on the menus admin page?
- Given multiple admin accounts, how can I make it so that only admin with X username can edit posts
- Wp-Admin FTPS Connection Error unlike Filezilla
- Remove iPhone detection on login page
- Dashboard RSS Widget Overhaul
- How To Create WordPress Dashboard Item
- Adding a WordPress Admin Dashboard to my local wordpress site
- How to create custom backend admin menu in different languages?
- How to log into WordPress via GET/POST
- Login to admin by frontend form?
- After upgrading to WP 5.1.1 sometimes I need to reauth infinitively
- Error “Sorry, you are not allowed to access this page”
- I can’t access login page
- Trying to login to my site redirects me to the first page
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- Admin Login Checks
- Dashboard controls have all stopped working
- Sortable admin columns by 0.00 number
- How to update my website with WordPress?
- wordpress login loop after install
- WordPress login process is hanging
- WordPress “Hide WP” Gives Me Error After Admin Login [closed]
- Scripts are not called until I login from wordpress backend
- Disable wp-admin log on lightbox overlay
- Capability to read/edit page in wp-admin only for administrators
- WP Logs me out after updating anything on dashboard
- htaccess and htpasswd
- plugin to upload to youtube via wordpress [closed]
- Admin Login page not working at all
- WordPress admin panel is blank
- Can’t access my wp admin: captcha images invisible, gives me error message
- You do not have permission to access this document on form submit
- How to enforce authentication for all resources?
- 2FA for admin login only, is it doable?