mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
Adds new filter hook to redirect non loggedin user
This commit is contained in:
+7
-1
@@ -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 ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user