Skip to:
Content
Pages
Categories
Search
Top
Bottom

Prevent “User registered” and “User and User are now friends”

  • @teke115

    Participant

    Hello. I am trying to prevent “User and User are now friends” from showing up on the activity feed. How do I accomplish this? Also, the “User registered” to be defaulted to registered users only

    Thanks!
    Teke

Viewing 5 replies - 1 through 5 (of 5 total)
  • @shanebp

    Moderator

    To prevent activity items being created for new registers and friendships, add this to your theme/functions.php or bp-custom.php

    remove_action( 'bp_core_activated_user', 'bp_core_new_user_activity' );
    remove_action( 'bp_register_activity_actions', 'friends_register_activity_actions' );

    @teke115

    Participant

    Thank you!!!!

    @teke115

    Participant

    For some reason it did not correct the issue. I do not know what could be causing it.

    @shanebp

    Moderator

    It won’t remove already-existing entries, but should prevent new ones from being created.

    @teke115

    Participant

    Awesome, thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Prevent “User registered” and “User and User are now friends”’ is closed to new replies.
Skip to toolbar