Thanks,
Actually i think that your code should work and that my problem may be not where i thought. problem.
When i usedefine(‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ );
it works but when i put it in a function like that, nothing happens:
function redirect_to_forum(){
define('BP_GROUPS_DEFAULT_EXTENSION', 'forum' );
}
add_action('wp','redirect_to_forum');

So, i think that’s why nothing happens when i try to add your code.
Do you know what’s wrong with my function ?

Thanks,
it worls perfectly but now i have some trouble using parameters for bp_has_group
I want to display only the groups which match the condition ‘my_slug’==’yes’
I tried :
“
Is it the correct syntax ?