bp_groups_has_directory()
Check whether there is a Groups directory page in the $bp global.
Description Description
Return Return
(bool) True if set, False if empty.
Source Source
File: bp-groups/bp-groups-functions.php
function bp_groups_has_directory() {
$bp = buddypress();
return (bool) !empty( $bp->pages->groups->id );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |