Re: Example / Skeleton Admin options pane
I have had issues with the call to add_submenu_page working when placed within the bp-example-admin.php file. Instead, I place my …add_admin_menu() within the main file, bp-example.php.
function bp_example_add_admin_menu() {
global $wpdb, $bp;
if ( !is_site_admin() )
return false;
add_submenu_page( 'bp-core.php', __("Example Settings", 'bp-example'),
__("Example Settings", 'bp-example'), 1, __FILE__, "bp_example_admin_settings" );
}
add_action( 'admin_menu', 'bp_example_add_admin_menu' );