There is a filter called login_redirect
which you can use. The third parameter passed to this filter is the user object, so you have all kinds of possibilities to redirect. Like this:
add_filter ('login_redirect', 'wpse63660_redirect', 10, 3);
function wpse63660_redirect ($redirect_to, $request, $user) {
//is there a user to check?
if ( isset( $user->roles ) && is_array( $user->roles ) ) {
//check for admins
if ( in_array( 'administrator', $user->roles ) ) {
// redirect them to the default place (dashboard
return $redirect_to;
} else {
// set redirect page based on user name or whatever you want
if ($user->name == 'user1') $redirect_to = www.example.com/client_one
elseif ... and so on ...
return $redirect_to;
}
} else {
return $redirect_to;
}
}
Related Posts:
- Allow user to select a theme to install when they signup
- Password Reset for Users on a Multisite Subsite
- Changing Multisite themes on mass
- Is there an easy way to separate themes on network?
- How to reset passwords for all users on a network using wp cli
- Hide a theme on list of themes in wp-admin without editing core files
- Can I install a theme on only one site of a multi-site network install?
- Need to manually regsiter user, send the password and retreive their user ID
- Can’t find “Add New” button for themes in a multisite
- How to move theme directory but not plugins/uploads out of WordPress root directory?
- Manipulate list of themes in wp-admin
- Subfolder multisite issue. Themes and plugin files 404
- cant enable theme in multisite
- Bulk activate a theme on multisite
- Using Two Themes – One for Main Site, One for Ecommerce
- Password protect a single site on network
- Multi-site get_bloginfo(‘stylesheet_directory’) referring to sub-folder
- Multisite theme control not working
- WordPress MultiSite Theme
- Update configured themes
- Does a single theme license work on multisite? [closed]
- Create a CSS file in plugin folder when theme is activated
- Is it necessary to network enable both the parent and child theme for multisite installations?
- Trying to change active theme on all sites in Multisite
- Multisite > Edit Site > Themes – what are these themes?
- WordPress multisite with same content
- Is a multisite install what I need?
- How to automate setup of theme, pages, widgets, etc for a new site in multi-site?
- Why WordPress w/ Nginx Multisite Only Lets Admin Upload ZIP Plugins But Not Themes? [closed]
- Set my own password when registering a multisite user or site
- May I do multiple micro-sites with different themes in a single wordpress without subdirectory nor subdomain separation?
- How can I have two or more WordPress Pro (paid) themes that form a single website?
- Create link preview for theme wordpress
- Themes are visible in Network, but invisible in sites
- One membership area for two websites
- WordPress theme to support single website but with 3 sections for 3 languages
- WordPress multisite condition for certain blog_id’s
- WordPress Multisite – Auto enable theme
- Woocommerce Membership synchronised accross multisite
- Whats the best Practice for using a different Theme for WebView Apps?
- Creating a stand-alone site from a WordPress sub site
- Updating themes customized by users
- How to handle responsive and non responsive websites in one WordPress Theme?
- In a MS install, can you allow different users to have their own themes?
- What is the best way to build a network of WP sites that share the same membership area?
- How to mass change theme for all Multisite network sites?
- Iterating over every multisite / theme and list the pages
- different image for mobile template block theme
- How to delete post revisions?
- Upload path/URL weirdness for the main blog of a multisite/network setup
- WP_Site_Query vs. WP_Network_Query in WordPress 4.6
- Multisite/network–automatic self-registration, blog setup
- COOKIE_DOMAIN setting confusion
- Restrict users on multisite WordPress install
- Possible to make custom role in multisite that can add sites?
- Editing theme files and access to the Code pages only to super-admin?
- Asian language multisite IDN subdomain
- Using separate Apache log files for multisite
- Network setup tab is not shown under Tools
- Set multisite settings when new site created
- SQL to check how many sites a user is a member of
- Multi-site: Change the URL of main site to HTTPS
- How to show sites under “My Sites” Menu in admin panel wordpress multisite?
- What type of Google tracking should I use?
- How can I get multisite primary blog (url or path) for current user?
- convert from single site to multisite (network) with existing subdomains
- Changing admin sub-domain in WordPress multisite
- Yoast Sitemap grouping external sitemaps [closed]
- Change Username?
- What does “Use BalanceTags” Do?
- Images don’t show up
- How can I automatically duplicate a site’s pages onto network site?
- Gravity Forms: gform_wrapper stays hidden even though JS-scripts load without errors
- Multisite User cannot access dashboard
- Acivate all themes multisite wide automatically
- Multisite installation on an existing single installation
- Multisite Sub domains not working
- How Can I Change The Name Of My Subdomain in WordPress Multisite
- Display site description instead of site name
- WordPress multi-site: How do I create the home page, the root URL?
- Is it possible to query posts with tax queries after multisite switch_to_blog() function?
- In Multisite the users profile picture keeps disappearing for “the other site”
- Two installs conflicting – Pages redirecting
- Website not listed under Sites (in a Network environment)
- Give users acces to admin a single post or set up WP network?
- WordPress Multisite for multi-language
- Can I use the main Multisite as a backend only?
- Downloading customized theme from wordpress
- the menu of the network does not display my second website
- Multisite – site user limited only for this site
- Get variable from previous blog while using switch_to_blog
- How to Password Protect whole site except for some subdirectories
- WordPress multisite not working
- New multisite redirects to main site
- How to disable style filtering in post?
- Create a Network of Different websites with wordpress
- WP Multisite: Do a function after blog is activated
- How to login Separately in each blog?
- Cookies in Multisite network where sites have their own domain name?
- Multisite admin panel not working after the update