Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘ [Resolved] Disable activity comment button’ is closed to new replies.
This topic is: resolved
Hi Tosin,
Thank you for the question.
You may want to put it in your bp-custom.php and see if it works
// Disable comment for all type except specified in the list.
add_filter( 'bp_activity_can_comment', function ( $can, $activity_type ) {
return in_array( $activity_type, array( 'new_classified', 'new_blog_post' ) );
}, 10, 2 );
Regards
Brajesh
The topic ‘ [Resolved] Disable activity comment button’ is closed to new replies.