Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to overwrite a function?


Boone Gorges
Keymaster

@boonebgorges

heini – Just to be clear: What @3sixty is suggesting is that you copy the *entire* groups_setup_nav() function (it’s pretty big), paste it into bp-custom.php, change the name (eg to my_group_setup_nav), make the change to bp_core_new_nav_default, and then do the remove_action/add_action stuff outside the function.

If you do this right, then it will replace the entire function, though most of it will be replaced by the same code.

Skip to toolbar