Skip to:
Content
Pages
Categories
Search
Top
Bottom

Modifying / overwriting a BP function (bp_activity_add)

  • @bermudasam

    Member

    Hi,
    I am trying to overwrite `bp_activity_add` -function (located in /buddypress/bp-activity/bp-activity-functions.php) with a little modification that I’ve made. It’s basically hiding certain kind of posts from the activity feeds.

    Is it possible to overwrite this without tampering with the actual core files? I ran into problems since there’s no usual `add_action()`-hook to it which I could have removed with `remove_action()` in bp-custom.php file and so forth…

Viewing 2 replies - 1 through 2 (of 2 total)
  • @etivite

    Member

    have a look at the block activity types plugin – you can see where i hook and block inserting to the db. it would be easy with further work to grab the the_post info and perform whatever checks on the post data.

    @bermudasam

    Member

    Will look into it. Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modifying / overwriting a BP function (bp_activity_add)’ is closed to new replies.
Skip to toolbar