Add the follow button to user posts/ images /other places on the site

Use this php code:

if($author_id != $current_user_id) {
echo $userpro_social->follow_text($author_id, $current_user_id);

This will allow users to follow the author of the post/page. This will prevent the follow button to be displayed if you are logged in and it’s your own post as well.

Was this article helpful?

Related Articles

Leave A Comment?