@zamoose
Active 8 years, 4 months ago
-
Roger Coathup posted on the forum topic How do I detect whether I’m on a BuddyPress page? in the group How-To and Troubleshooting: 14 years, 4 months ago
@zamoose – you can use the function: bp_current_component() that returns a boolean To detect specific pages, you can use bp_is_page() as @modemlooper points out. Use it like this: bp_is_page( BP_MEMBERS_SLUG ) bp_is_page( BP_ACTIVITY_SLUG ) bp_is_page( BP_GROUPS_SLUG ) bp_is_page( BP_FORUMS_SLUG ) bp_is_page( BP_BLOGS_SLUG ) Other functions (look…[Read more]