Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Custom activity slug

@danbp

Participant

These pages are used internaly and dynamicaly by BP, depending their context. And in this, you preferably won’t to change their slugs.

If you need to add a message on them, you can use one of the do_action hook you’ll find on their respective template. For example, something before the content loop on the profile page:

function bpfr_my_profile_msg() {	
	if( !is_user_logged_in() ) {
		echo '<div class="my_profile_msg">Hi dude !</div>';	
	}		
}
add_action( 'bp_before_profile_loop_content', 'bpfr_my_profile_msg' );

And to get custom slugs, you have to use the define technique described here:

Customizing Labels, Messages, and URLs

Skip to toolbar