I tried to use above code on fanctions.php.
Profile page url has been changed as ‘/members/user_id’,but it was not displayed.
————————————————————————————————–
Warning: Missing argument 2 for bp_get_userid_with_id() in /wp-content/themes/my-theme/functions.php on line 117
Warning message appered from the following code.
function bp_get_userid_with_id($userid, $username){
//function bp_get_userid_with_id($username){
//if the username is an userid ?
if(ctype_digit($username)){
// check if a user with userid equal to $username exist
$aux = get_userdata( $username );
if( get_userdata( $username ) )
$userid = $username;
}
return $userid;
}
add_filter(‘bp_core_get_userid’, ‘bp_get_userid_with_id’, 10, 2);
————————————————————————————————–
I am sorry about the insufficient study in the buddypress’s hook,
please tell me how to change profile page url as ‘/members/user_id’ .