bp_members_has_directory()
Check for the existence of a Members directory page.
Description
Return
(bool) True if found, otherwise false.
Source
File: bp-members/bp-members-functions.php
function bp_members_has_directory() { $bp = buddypress(); return (bool) !empty( $bp->pages->members->id ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.5.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.