WordPress.org

Support

Support » Plugins and Hacks » Adding a command/value to a link

Adding a command/value to a link

  • Is there a way to have links execute commands? I am new to this and have some trouble so help is appreciated!

    What I am looking for is to have a link for sending a message to a specific user. I have the User Messages plugin, which allows for private messaging on the front end. I was hoping to create a link that will redirect to the create message URL (http://hookahi.com/messages/write-message), but have the link contain the value # for the recipient. Basically, a link that sets the value of a certain input/field, is that possible?

    What I am hoping for… the profile of user Phil who’s “value #” is 17. A link that says “Send Phil a Message” with the link as ‘<a href="" class="user.select" value="17">Send Phil...</a>‘ or something like that? Can that be done?

  • The topic ‘Adding a command/value to a link’ is closed to new replies.