Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Change slug without touching core files?

@danbp

Participant

@mcuk,

  1. a slug is a human friendly URL. (as of your topic title)
  2. a tab name or a menu item is just a name, on which applies an URL. (as of your given example)

This means that your tab or menu can be written Cow-Boy and his URL can can be completely different, for example your-site/members/mcuk/amigos/

For consistancy and SEO logic, most prefer the same wording for both.
Related to “friends”, open bp-friends/bp-friends-loader.php and see how it works.

You will discover that

// Define a slug, if necessary
   if ( !defined( 'BP_FRIENDS_SLUG' ) )
	define( 'BP_FRIENDS_SLUG', $this->id );

is not deprecated.

In other words, to change the slug, you can use from within bp-custom.php
define ( ‘BP_FRIENDS_SLUG’, ‘whatever’ ); whatever should be exclusively alpha numeric, lower case, without any special character or ponctuation.

To modify tabs and menu items, simply use the language file.

Customizing Labels, Messages, and URLs

Skip to toolbar