Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: add_submenu_page & __FILE__ problem

For others who are frustrated by add_submenu_page – using WPMU2.9.1 BP1.13

to BuddyPress menu in WP-admin

function add_menu_link(){

add_submenu_page( 'bp-general-settings', "YOUR MENU", "Your Title ",
'manage_options', 'your-plugin-slug', 'your_function');
}
add_action( 'admin_menu', 'add_menu_link', 20);
// NOTE the addition of a higher priority seems to solve the problems where
// WPMU starts trying to tell you that you don't have access (url is admin.php/?c=1)

I can’t take credit for this – the solution was here

http://teleogistic.net/2009/10/group-forum-subscription-for-buddypress-1-1/#comment-4582

Skip to toolbar