Use the filter login_redirect
to redirect users to a page of your choice after login, and logout_url
to redirect them after logging out.
An example would be the following:
function my_login_redirect( $url, $request, $user ){
// Redirect non administrator users to a custom url.
// Administrator gets redirected to default url
if( !current_user_can( 'administrator' ) )
return 'my-custom-url';
else return $url;
}
add_filter('login_redirect', 'my_login_redirect');