Overwrite / Change “me_slug” (Shortlink slug to redirect to logged-in user)
-
Hi everyone,
we have two digit profil names and one of our users has the profil name “me” so no one else is able to see the profile of this user.
Is there a way to overwrite the slug?
Original-Code from BP:
—
/**
* Shortlink slug to redirect to logged-in user.
*
* The x.com/members/me/* url will redirect to x.com/members/{LOGGED_IN_USER_SLUG}/*
*
* @since 2.6.0
*
* @param string $slug Defaults to ‘me’.
—
- You must be logged in to reply to this topic.