Add a follow button

You need to use the API for that.

<?php
global $userpro_social;
echo $userpro_social->follow_text('following_who_user_id', get_current_user_id());
?>

The first parameter is the user id to follow, the second parameter is who will follow him.

Was this article helpful?

Related Articles

Leave A Comment?