Reply To: Calling a post authors activity stream
Yeah I’ve used the code below already to add the tab to the Buddybar (subnav tab in my case) in the required location. It’s the attempt to call/load the necessary page templates/functions and whatever else is required for the Activity Loop that I’m looking to do atm.
// Add a new subnav menu tab
function new_subnav_tab() {
global $bp;
$parent_slug = 'notifications';
//Add subnav item
bp_core_new_subnav_item( array(
'name' => __( 'Fave' ),
'slug' => fave,
'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/',
'parent_slug' => $parent_slug,
'screen_function' => '????',
'position' => 30,
) );
}
add_action( 'bp_setup_nav', 'new_subnav_tab' );