Skip to:
Content
Pages
Categories
Search
Top
Bottom

Check if BP is installed

  • @64tees

    Participant

    Hi

    Is there any code I can use to check if BP is installed, I’m sure there’s something for plugins.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • @hnla

    Participant

    you can check if(function_exists(‘bp_is_active’) or ‘bp_version’ you may also want to have a look at the BP skeleton component plugins loader.php if your writing a plugin dependent on BP.

    @64tees

    Participant

    It’s a theme, I just thought a plugin might have this code, I will try place that in the header.php

    Cheers

    @slaffik

    Moderator

    Use functions.php for this – not header.php.
    Functions.php is loaded earlier than other theme files – but after plugins (like BP).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Check if BP is installed’ is closed to new replies.
Skip to toolbar