Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Conditional bp_register_group_extension – how?


Anonymous User 96400
Inactive

@anonymized-96400

You could do something like this instead of your normal registration function:

function activate_extension()
{
global $bp;
if( is_site_admin() )
{
$extension = new Your_Group_Extension_Class_Name;
add_action( "wp", array( &$extension, "_register" ), 2 );
}
}
add_action( 'plugins_loaded', 'activate_extension' );

Skip to toolbar