Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,891
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
@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