That would actually be a very good idea. +1 for that 🙂
Nevermind, got it working.
For anyone having the same problem, use
function jptweak_remove_share() {
if ( is_buddypress() ) {
remove_filter( 'the_content', 'sharing_display',19 );
remove_filter( 'the_excerpt', 'sharing_display',19 );
if ( class_exists( 'Jetpack_Likes' ) ) {
remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
}
}
}
add_action( 'loop_start', 'jptweak_remove_share' );
Hello @jeherve,
i have a similar problem in that the jetpack sharing plugin is messed up in every bbpress page (activity, profile, settings etc.) I’d want to get rid off all sharing buttons within buddypress. With your function I was able to remove it from the user profile page, could you please tell me how to remove it from all other buddypress pages?
Thanks in advance and keep up the good work 🙂