I’ve tried link & here is my code
add_filter( 'login_redirect', 'redirect_admin');
function redirect_admin( $redirect_to, $request, $user ){
//is there a user to check?
if ( isset( $user->roles ) && is_array( $user->roles ) ) {
$redirect_to = WP_HOME.'/quote-list/'; // Your redirect URL
}
return $redirect_to;
}
but it’s not working.
-
This reply was modified 6 years, 1 month ago by meetyourself.