Search code examples
phpwordpressbuddypress

Use the value instead of displaying it


I'm trying to use bp_group_name() in

if (bp_group_name()!='General') {
//code
}

Instead of using the value of bp_group_name() in the IF, it displays the value on the page.

Sorry if the way I described this was a bit off...


Solution

  • bp_get_group_name() ?

    http://bp-dev.org/phpxref/_functions/bp_get_group_name.html