Forums » Developing with WordPress » Add username to URl

  • Resolved gregorita12

    (@gregorita12)


    Hello,

    I would like to create a function that add a username to the link like https://domain.pl/client-panel/username , so that it transfers them to their personal customer panel. I have Elementor premium so I can add a shortcode to the button, but the functions that i find or write didn’t work properly, or even did not move me to any page at all.

    Do you have any ideas on how to create it or how to create custom client panels?

    • This topic was modified 3 years, 6 months ago by gregorita12.
    • This topic was modified 3 years, 6 months ago by gregorita12.
    • This topic was modified 3 years, 6 months ago by gregorita12.
    • This topic was modified 3 years, 6 months ago by gregorita12.
    • This topic was modified 3 years, 6 months ago by gregorita12.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @gregorita12,

    I don’t recommend using a username (login name) in a URL like that because it can be considered personally identifiable information. Meaning it can violate privacy laws.

    For example, if your site is using Google Analytics, those URLs would be stored on Google’s servers which would violate Google privacy terms.

    If you’re creating some sort of membership page, I would look at some of the well-established plugins that do that for you.

    Please do a search on WordPress membership plugins.

    Good luck!

    Thread Starter gregorita12

    (@gregorita12)

    Thank you! 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add username to URl’ is closed to new replies.