Leave a Reply

1 comment

  1. 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);