Create an icon to follow author link

You can use the UserPro API to achieve this.

global $userpro_social;
echo $userpro_social->follow_text('author_id_here', get_current_user_id());

Author ID must be changed with your dynamic author ID, this could be get_the_author_meta(‘ID’) or different according to your theme. This will let current user follow the author.

Was this article helpful?

Related Articles

Leave A Comment?