bp_nouveau_groups_front_page_description()
Display description of the Group into the default front page?
Description
Return
(bool) True to display. False otherwise.
Source
File: bp-templates/bp-nouveau/includes/groups/functions.php
function bp_nouveau_groups_front_page_description() {
$group_settings = bp_nouveau_get_appearance_settings();
// This check is a problem it needs to be used in templates but returns true even if not on the front page
// return false on this if we are not displaying the front page 'bp_is_group_home()'
// This may well be a bad approach to re-think ~hnla.
// @todo
return ! empty( $group_settings['group_front_page'] ) && ! empty( $group_settings['group_front_description'] ) && bp_is_group_home();
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 3.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.