Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filter out new_avatar in activity 1.7

  • Avatar of Ajchimera
    Ajchimera
    Participant

    @ajchimera

    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)
  • Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    @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

    Avatar of Ajchimera
    Ajchimera
    Participant

    @ajchimera

    Could not get to work so i must doing it wrong

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    @ajchimera,

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

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

    Avatar of Ajchimera
    Ajchimera
    Participant

    @ajchimera

    @chouf1

    Thanks for the help

    Avatar of Henry
    Henry
    Participant

    @henrywright-1

    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)

You must be logged in to reply to this topic.