Is this really the best way to check if I’m on a member profile?
-
I’ve been using this to cover my bases when checking to see if I’m on a member profile, for say a special sidebar or component I want to show only on member profile pages and sub pages….
` !bp_is_blog_page() && !bp_is_register_page() && !bp_is_activation_page() && !bp_is_directory() && !bp_is_group_home() &&!bp_is_group_forum() && !bp_is_group_members() && !bp_is_group_invites() && !bp_is_group_admin_page() &&!bp_is_group_create() `
is there something shorter?
`bp_is_user_profile()` doesn’t not cover off on edit subpages…and doesn’t cover the member activity
- The topic ‘Is this really the best way to check if I’m on a member profile?’ is closed to new replies.