Support » Plugin: BP Activity Share » shared activities disappear

  • Resolved Vidjay Lee

    (@vidjaylee)


    hi,
    i sue this function to filter my activities update

    function my_yoostart_activity_types( $retval ) {
        $retval['action'] = array(        
        'activity_comment',
        'activity_update',
        'created_group',
        'friendship_created',
        'joined_group',
        'last_activity',
        //'new_avatar',
        'new_blog_comment',
        'new_blog_post',
        //'new_member',
        'updated_profile'        
        );
     
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_yoostart_activity_types' );

    but when i use it All shared activities disappear.
    What filter is used by your plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Vidjay Lee

    (@vidjaylee)

    Hello,
    I found the plugin option to display shared activies, It should be added “bp_activity_share” to the function.

    function my_yoostart_activity_types( $retval ) {
        $retval['action'] = array(        
        'activity_comment',
        'activity_update',
        'created_group',
        'friendship_created',
        'joined_group',
        'last_activity',
        //'new_avatar',
        'new_blog_comment',
        'new_blog_post',
        //'new_member',
        //'updated_profile',
        'bp_activity_share' // option du plugin bp-activity-share    
        );
     
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_yoostart_activity_types' );
    

    have a nice day

    Plugin Author Sanket Parmar

    (@sanketparmar)

    Hi @vidjaylee,

    It is great that you found the solution by yourself. Thanks for sharing this code, this will help the community. 🙂

    If you have some time, can you please share your review here -> https://wordpress.org/support/plugin/bp-activity-share/reviews/#new-post?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘shared activities disappear’ is closed to new replies.