Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] user page tab with a link to another site

@danbp

Participant

Hi,

try this (add to bp-custom.php):

function add_profiles_link_to_page(){

	if ( bp_is_profile_component() || bp_is_user() ) {

	// allow link to appear only to loggedin user
	/*if ( !is_user_logged_in() )
		return false; */

	// tabed internal link : /internal link/page name/
	//$link =  bp_get_root_domain() . '/book/';

	// tabed external link
	$link =  "https://www.amazon.com/";
	
	?>
		<li><a href="<?php echo $link; ?>"><?php printf( 'My Books' ); ?></a></li>
	<?php  
	}
}
add_action( 'bp_member_options_nav', 'add_profiles_link_to_page' );
Skip to toolbar