How do I create a custom tab on the homepage of Buddypress members?

I'd like to create a custom tab next to the notifications tab on the homepage of buddypress members. I'd like that tab to be a link to the inbox page used by the private messaging plugin (wpmudev). Any suggestions on how to pull this off? I found some code to insert into the bp-custom .php file, but it is 5 years old (and I haven't been able to get it to work):

bp_core_new_subnav_item( array(
‘name’ => ‘My New Page’,
‘slug’ => ‘my-new-page’,
‘parent_url’ => $bp->loggedin_user->domain . $bp->members->slug . ‘/’,
‘parent_slug’ => $bp->members->slug,
‘screen_function’ => ‘my_members_page_function_to_show_screen’,
‘position’ => 40 ) );

function my_members_page_function_to_show_screen() {

//add title and content here – last is to call the members plugin.php template
add_action( ‘bp_template_title’, ‘my_members_page_function_to_show_screen_title’ );
add_action( ‘bp_template_content’, ‘my_members_page_function_to_show_screen_content’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
}

function my_members_page_function_to_show_screen_title() {
echo ‘Inbox’;
}
function my_members_page_function_to_show_screen_content() {

// page content goes here

}