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
- Export/Import Blog Post from and to sites with different themes?
- How to use WordPress Multisite With Different Domain Names?
- Can i merge 2 new WP_Query($variable) ‘s?
- How to reliably flush rewrite rules on multisite?
- Using wp_insert_post() with Networking enabled
- Sharing Dynamic Sidebars across Multisite Blogs
- multisite: use a virtual subfolder for subblogs
- WP Multisite – multilanguage – swich to other language by click, but “same” content
- How To Provide Sub-Blogs Their Own Domain Names?
- “You need a higher level of permission” after admin changing. Why?
- Advanced Custom Fields Multisite Upload/Imagery Issue [closed]
- Prevent user creating new users with specific roles
- What is the correct form action URL for network options pages?
- Lock one of WP Network sites for not registered users
- How can I manage all multisite pending comments in one place?
- WordPress Multisite Network installation and dev questions
- BuddyPress on Multisite [closed]
- List all sites in multisite
- Migrating WPMS from apache to IIS7 causes Database Error
- Turn off trackback/pingbacks and comments on all existing multisite sites
- Creating Admin Options Page where users can make changes to a theme
- htmll lang=”de” but admin page in English
- Multisite list all pages in site
- WordPress Multisite Sites show in Dropdown but not in Sites menu
- Dissolve Multisite while making site #5 the main site?
- Disable domain redirect
- Multisite setup on IIS with subdomains
- Partially translated dashboard in one of network’s site
- How can I fix a Virtual Multiblog install that has no errors, but won’t show all my sites?
- Disabling outbound connectivity on web servers [closed]
- Depth > 2 possible with multisite?
- What are Attributes used for in a WordPress Multisite?
- Make a user administrator to a sub directory site and a contributor to main site in multisite network
- How to store custom user data on the database?
- NGINX rewrite rules for sub subdomains
- Enable wildcard in a WordPress Multisite (Sub-Domains)
- Temp URL Redirect Loop
- wordpress multisite dashboard link in admin bar
- Multisite – user email activation links broken
- Multisite with subfolders- can’t access main site- Error establishing a database connection
- WP MU Register User across all blogs
- multisite subdomain behind reverse proxy
- Set default settings for all new multisites?
- How to disable a network enabled plugin on all sites, excepting on one?
- Multisite Subdirectory with same domain subdomain
- wp_mail() not sending email in multisite subdomain
- What are good approaches to routing some urls to a second WordPress install?
- Show media-frame-menu on custom Media Frame
- Show content of other domain inside WordPress
- Moving a remote WordPress multisite installation to local
- Multisite redirecting wrong when without WWW
- Multisite, domain mapping and SSL?