Front end link to "Add friends"? PHP code?

Hey Guys

I use a plugin called Cartpauj PM for a private message system on the front end and was able to use a PHP code to add a link to each post that says "send message to user"

I was wondering if there was some type of PHP code I can use for the front end to create my own link on each post that says "Add Friend"

Well, I know its possible but don't know if anyone here can help me offhand to tell me what the PHP code would look like. This would help me so much! Thanks for any help anyone can provide :slight_smile: