Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Determine if page is the main members page, not ‘profile’

@hnla

Participant

🙂 did you check the BP codex before embarking on above?

The docs is first port of call, we attempt to document as much as possible there on an ongoing basis, some pages are undergoing re-freshing & updating but still provide useful reference like this page:

Template Tag Reference

Where you might try bp_is_directory()

Or scan through bp-core-template.php in the core files where you’ll find reference to: bp_is_members_directory()

which actually is a very simple check to see if !bp_is_user() && bp_is_members_component() the difference remaining can only be the members main directory.

Generally BP is well specified for template tags and ‘is’ function checks.

Skip to toolbar