Support » Plugins and Hacks » Pass Username (or ID) in URL string dynamically

  • Does anyone know how I would create a URL to an external site that includes the username?

    For example, I have a link on a site that goes to a third party site, and in order to execute the handshake the URL also needs to contain the user’s WP username:

    <a href="https://secure.website.com/login.php?user_id=username">Click here</a>

    -or, for user jsmith-

    <a href="https://secure.website.com/login.php?user_id=jsmith">Click here</a>

    I am also using this as a text widget in the sidebar if that makes any difference.

    Thanks to in advance. Your help is greatly apprecaited.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Pass Username (or ID) in URL string dynamically’ is closed to new replies.