Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filter out new_avatar in activity 1.7


  • 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)

  • 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


    Ajchimera
    Participant

    @ajchimera

    Could not get to work so i must doing it wrong


    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.


    Ajchimera
    Participant

    @ajchimera

    @chouf1

    Thanks for the help


    Henry
    Member

    @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)
  • The topic ‘Filter out new_avatar in activity 1.7’ is closed to new replies.
Skip to toolbar