<?php
define( 'MENTIONS_BP_COMPONENT_SLUG', 'mentions' );
class MENTIONS_BuddyPress {
function MENTIONS_BuddyPress() {
global $bp;
add_action( 'bp_setup_nav', array( &$this, 'bp_setup_nav'), 100 );
}
function bp_setup_nav() {
bp_core_new_nav_item( array(
'name' => __( 'Mentions', YOUR_TEXTDOMAIN ),
'slug' => MENTIONS_BP_COMPONENT_SLUG,
'screen_function' => array( &$this, 'tab_template' ),
) );
}
function tab_template() {
add_action( 'bp_template_content', array( &$this, 'tab_content' ) );
bp_core_load_template( 'members/single/plugins' );
}
function tab_content() {
?>
<!--Content goes here-->
<?php
}
}
$GLOBALS['_mentions_buddypress'] = new MENTIONS_BuddyPress;