Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to overwrite a function?


heini
Participant

@heini

thanks for the statement, but my problem is, that I don’t know how to overwrite the function.

I’ve inserted the file bp-custom.php with the following code:

bp_core_new_nav_default( array( 'parent_slug' => $bp->groups->slug, 'screen_function' => 'groups_screen_group_home', 'subnav_slug' => 'forum' ) );

But that i get the following error message:

Fatal error: Call to undefined function bp_core_new_nav_default() in /home/www/wp-content/mu-plugins/bp-custom.php on line 3

Hope anyone can help me.

Skip to toolbar