I get this code to create a redirection after login. I see no error but it doesn't work. No errors, it just do nothing at all.
I added this code to functions.php in my child theme.
/*******************************
REDIRECTION
*********************************/
add_action('wp_head','redirect_admin');
function redirect_admin(){
if(is_admin()&&!current_user_can('level_10')){
wp_redirect(WP_HOME.'/quote-list/');
die; // You have to die here
}
}