jawittdesigns
4/25/2015 - 2:50 PM

redirect users to front page after login

redirect users to front page after login

function redirect_to_front_page() {
global $redirect_to;
	if ( !isset( $_GET['redirect_to'] ) ) {
		$redirect_to = get_option( 'siteurl' );
	}
}
add_action('login_form', 'redirect_to_front_page');