Skip to:
Content
Pages
Categories
Search
Top
Bottom

Check if BP is installed

  • Avatar of nsbrown
    nsbrown
    Participant

    @64tees

    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)
  • Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of nsbrown
    nsbrown
    Participant

    @64tees

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

    Cheers

    Avatar of Slava UA
    Slava UA
    Participant

    @slaffik

    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)

You must be logged in to reply to this topic.