Skip to:
Content
Pages
Categories
Search
Top
Bottom

My activity group and user avatar links issue


  • MorgunovVit
    Participant

    @morgunovvit

    Hi!
    Recently I’ve noticed that links with avatars in My activity Buddyboss wall display incorrectly. See the screenshot

    The issue with bp_get_activity_action() in \plugins\buddypress\bp-activity\bp-activity-template.php
    If the reason of the issue is hard to define – I’m agree to deny from avatars in the activity posts. i’ve tried to do this this way:

    <pre>
    /* instead this */
    //		return apply_filters_ref_array( 'bp_get_activity_action', array(
    //			$action,
    //			&$activities_template->activity,
    //			$r
    //		) );
    /* put this */
                    return $activities_template->activity->action;
    </pre>

    But I don’t know how I can arerride this function in my child-theme.
    Could you help me?

    Website: https://mc21academy.ru/members/designer/

    I use:
    WordPress Version: 4.9.8
    PHP Version: 7.2.8
    SocialLearner for LearnDash theme
    BuddyPress: 3.1.0
    BuddyPress for LearnDash: 1.2.5
    BuddyPress Global Search: 1.1.9
    BuddyPress Members only: 1.9.3
    BuddyPress Reorder Tabs: 2.0.1
    bbPress: 2.5.14
    Boss for LearnDash: 1.3.3
    BP Remove Profile Links: 1.2
    BuddyBoss Products Updater: 1.0.2
    BuddyBoss Wall: 1.3.5

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

  • Prashant Singh
    Participant

    @prashantvatsh

    Hi,

    You have to do it something like this:

    add_filter('bp_get_activity_action','ps_remove_avatar_activity',10,1);
    function ps_remove_avatar_activity($args){
    //Write your code here
    }

    Thanks


    MorgunovVit
    Participant

    @morgunovvit

    Hi, Prashant Singh!
    Thanks a lot for the advice!

    It seems that I can not wait for help in finding and eliminating the cause of the error, so this solution remains the best.


    Prashant Singh
    Participant

    @prashantvatsh

    ok 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar