Skip to content
Advertisement

Tag: userid

User ID remove @ and transform “.” into “-“

I have this function in order to set a link for my user to go to their custom profile page : The issue is that if the user ID is his email like john@example.com the link https://mywebsite/author/john@example.com will have an 403 error. But if the is the link is https://mywebsite/author/johnexample-com it works. So is there a way to clean the

Advertisement