Replies
Thanks for the updated code
I am using the profile privacy plugin and while using your updated code I am receiving the 404 error correctly but the url is in this format https://site.com/members/mike/visibility-protected/.
I dont think it’s cool to show the (visibility-protected) slug for admins since it reveals that the admin account is available but just hidden