Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Wrapper function if BP is activated?

@danbp

Participant

@andrewteg,

there is a little link on your example to another codex page who give’s you the main reason for using a wrapper.

It is not required, but strongly recommended. Depending what, where and how your code should run, they are diffrent other ways to ensure that BP is active.
the classic php if_class_exist()
or more a la BP specific

if ( function_exists('bp_is_active') ) {
  // do something here...
}
Skip to toolbar