Re: How to overwrite a function?
I did it exactly like this.
I insert the following code into the file bp-custom.php and uploaded it to mu-plugins
<php
function my_groups_setup_nav() {
[the whole function code]
}
remove_action('bp_setup_nav', 'groups_setup_nav');
add_action( 'bp_setup_nav', 'my_groups_setup_nav' );
?>
I even didn’t make any changes at the code, so it’s for 100% the same function code like in the core. But anyway there are coming now some errors. When I go to the group page the first page is the same like always (regardless of what I do at the new function) but I can’t go to another page of the group anymore. It will always show only the start page.