BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall Can I create a child folder for the wall_plugin when I need to change something?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #37166
    @kzpower

    hello, I want to know can I create a child folder for the wall_plugin. Because I need to change buddyboss-wall/includes/wall-class.php On line 530
    $where = “WHERE ( $table.user_id = $user_id AND $table.type!=’activity_comment’ AND $table.type!=’friends’ AND $table.type!=’new_member’ AND $table.type!=’new_avatar’ )”;

    But, after I update each time, I lost all the code that I had customize. DO I have a way to prevent that?Thanks.

    Answers

    #37251
    @vapvarun

    @shilong i have made that class separate inside the bp-custom.php
    using that approach bp-custom.php BuddyBoss_Wall_BP_Component class will be hooked first before the wall plugin and in that way your customization will be preserved

    Add that bp-custom.php file inside the plugins folder
    http://pastebin.com/ehr6LzHx

    Thanks
    Varun Dubey

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Can I create a child folder for the wall_plugin when I need to change something?’ is closed to new replies.