Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] How to remove “Favorite” from blog posts entries in stream?

@danbp

Participant

@aymanomar85 your CSS trick only hides the button, it doesn’t remove it.

@rosyteddy, this snippet removes the button:

function bpfr_activity_cannot_favorite( $retval = true ) {
     $activity_type = bp_get_activity_type();

     if ( ! empty( $activity_type ) && 'new_blog_post' == $activity_type ) {
         $retval = false;
    }

   return $retval;
}
add_filter( 'bp_activity_can_favorite', 'bpfr_activity_cannot_favorite', 10, 1 ); 

Add to bp-custom.php

Skip to toolbar