Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Friendship Notifications from Activity Stream


  • JosiahW
    Participant

    @josiahw

    How do I remove the friendship notifications from the activity stream?
    “User 1 and User 2 are now friends”

    WP: 3.9.1
    BP: 2.0.1
    BBPress: 2.5.4

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

  • shanebp
    Moderator

    @shanebp

    Take a look at:

    Activity Loop

    In particular: filtering-options re action and object, and filtering-examples


    JosiahW
    Participant

    @josiahw

    What are component ID’s and which one handles friendship acceptances. I do not know how to code but I know enough to stick a code snippet in place somewhere.


    shanebp
    Moderator

    @shanebp

    In this context, component IDs are the name of the component.

    I would use the ‘action’ filter and leave out ‘friendship_created’.

    Before you make changes, created a template over-ride for the activity-loop template.

    See:

    Theme Compatibility & Template Files


    meg@info
    Participant

    @megainfo

    hi @josiahw,

    add this code to functions.php

    remove_action( 'bp_register_activity_actions', 'friends_register_activity_actions' );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Friendship Notifications from Activity Stream’ is closed to new replies.
Skip to toolbar