Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filter out new_avatar in activity 1.7

  • @ajchimera

    Participant

    I’m trying to filter out the “new_avatar” activity update with a custom function so it will not show in the client side. Can anyone show me how to do this or point me to a resource on how to do this in 1.7

    Thanks

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

    Participant

    @ajchimera,

    depends what exactly you want to remove, they’re 2 separate instances. Use one or both.

    try this, into your custom functions.php

    remove_action( ‘bp_register_activity_actions’, ‘xprofile_register_activity_actions’ );
    remove_action( ‘xprofile_avatar_uploaded’, ‘bp_xprofile_new_avatar_activity’ );

    source: bp-xprofile/bp-xprofile-activity.php:16 & 118

    @ajchimera

    Participant

    Could not get to work so i must doing it wrong

    @chouf1

    Participant

    @ajchimera,

    For sure ! Copy/pasting from this forum is a mess.

    You have to change the quotes to straight quotes. That’s all.

    @ajchimera

    Participant

    @chouf1

    Thanks for the help

    @henrywright-1

    Member

    you could always try a CSS option. If the div can be targeted then display: none would hide the entry from the activity stream

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter out new_avatar in activity 1.7’ is closed to new replies.
Skip to toolbar