bp-custom code not working
-
The development is running the following versions of software:
WordPress v3.7.1
BuddyPress v1.8.1
Custom BuddyPress theme based on Genesis Framwework v2.0.1I have the following code in my bp-custom.php file which I placed in the mu-plugins folder
add_action( ‘bp_setup_nav’, ‘vm_setup_nav’ );function vm_setup_nav() { global $bp; // Remove a menu item //$bp->bp_nav['activity'] = false; // Change name of menu item $bp->bp_nav['settings']['name'] = "Password & Cart Settings"; // Change name of menu item $bp->bp_nav['groups']['name'] = "Circles"; }
It wasn’t working. I changed the plugin location from wp-content/mu-plugins to wp-content/plugins and it didn’t work there either. When I put this same code in the theme’s functions file, it works.
What am I doing wrong?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘bp-custom code not working’ is closed to new replies.