Actually i think that your code should work and that my problem may be not where i thought. problem.
When i use define(‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ );
it works but when i put it in a function like that, nothing happens:
define('BP_GROUPS_DEFAULT_EXTENSION', '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 ?
but it doesn’t work, am i doing something wrong ?
Besides i got a warning message :
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /homez.38/centrale/www/demo/demo/INELSE/wp-content/plugins/bp-custom.php:10) in /homez.38/centrale/www/demo/demo/INELSE/wp-content/plugins/events-manager/classes/em-notices.php on line 11
If someone has a solution, it would be really great
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 ?