Skip to:
Content
Pages
Categories
Search
Top
Bottom

Am I on a BP page vs plain WP page?


  • ChiefAlchemist
    Participant

    @chiefalchemist

    What’s the best way of knowing is the current page to be server will or won’t have BP functionality / content on it.

    I want to limit access to the BP functionality. I’m hoping / presuming there’s a bottle neck where I can just test user_can(‘x’) and BP or just WP and then redirect. In fact, I’d want to redirect after login.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can test for various screens such as bp_is_user() for user account screens, or bp components or directories, groups etc, the Codex is your friend initially for these sorts of things then we can help further in refining that if need be.


    r-a-y
    Keymaster

    @r-a-y

    is_buddypress() should be a catch-all conditional for your needs.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Am I on a BP page vs plain WP page?’ is closed to new replies.
Skip to toolbar