Skip to:

Activity Spam/scam

  • Petchy


    I am having problems with spammers/scammers

    When new users register they are issued New Temp Role and i have managed to stop all these new users commenting and messaging users until they become a member.

    Now they have started spamming on the users activity feed is there a way of stopping the new user roles from commenting on other members activity until they become a member ?

    or is there a way of stopping them posting emails in there comments?

    or any other way that any one knows to stop this happening as it is very time consuming work going through the database to delete all the activity comments individually after I have noticed them and turned the account into spam account.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)

  • Venutius


    There’s a filter bp_activity_can_comment which you can use to filter whether a user can comment on activities:

    add_filter( 'bp_activity_can_comment', 'venutius_filter_commenting' );
    function venutius_filter_commenting( $can_comment ) {
        if ( current_user_can( 'excluded_role' ) ) {
            return false;
        return $can_comment;

    Replace the excluded_role with the role you want to deny commenting.



    Thank you so much sorry to bother you again noob question never used filters and cant seem to find info anywhere 🙁

    but could you please tell me where to put the code?



    doesnt matter i found it thank you so much again lets hope they dont find another way 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar