Redirection of users away from wp-admin (but not administrators)

Here’s how I do this: // if admin send them to the dashboard, otherwise leave them on the frontend add_action(‘wp_login’, ‘rt_login_redirect’, 10, 2); //use this action if you want them to be redirected only after login but leave the ability to to to the dashboard later (ie changing profile or pw). add_action( ‘admin_init’, ‘rt_login_redirect’ ); … Read more