Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created June 14, 2017 08:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wpweb101/87607c505e4f40a92a0e16ce5ec9015a to your computer and use it in GitHub Desktop.
Save wpweb101/87607c505e4f40a92a0e16ce5ec9015a to your computer and use it in GitHub Desktop.
Follow My Blog Post - Add Author Follow Button on buddypress user profile page
<?php
function bp_profile_header_meta_func(){
$author_id = bp_displayed_user_id();
echo do_shortcode('[wpw_follow_author_me author_id = "'.$author_id.'" ]');
}
add_action('bp_profile_header_meta','bp_profile_header_meta_func');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment