Adds new filter hook to redirect non loggedin user

This commit is contained in:
champsupertramp
2016-10-07 23:55:53 +08:00
parent fbe222f364
commit 51a7ec1279
+7 -1
View File
@@ -173,11 +173,17 @@ class UM_Rewrite {
exit( wp_redirect( $url ) );
}else{
exit( wp_redirect( home_url() ) );
$redirect_to = apply_filters('um_locate_user_profile_not_loggedin__redirect', home_url() );
if( ! empty( $redirect_to ) ){
exit( wp_redirect( $redirect_to ) );
}
}
}
}
}