[buddypress-dev] bp_exists()

Paul Gibbs djpaul at gmail.com
Sun Jul 10 11:20:31 UTC 2011


 bp_is_active() is what you're looking for.

-- 
Paul Gibbs

On Sunday, 10 July 2011 at 12:16, Stas Sușcov wrote:

> Hi,
> I was looking for a better way to check if the components (my plugin
> needs) are installed, and stumbled upon `bp_exists()`
> 
> I grep-ed through the BuddyPress codebase, but I couldn't find a usage
> example, I was also unable to use it like this:
> `
> if( !bp_exists( 'xprofile' ) )
>  wp_die();
> `
> 
> Is this deprecated?
> 
> Maybe its worth using a profiler tool for the next version to cleanup
> unreachable blocks of code in BuddyPress.
> 
> _______________________________________________
> buddypress-dev mailing list
> buddypress-dev at lists.automattic.com (mailto:buddypress-dev at lists.automattic.com)
> http://lists.automattic.com/mailman/listinfo/buddypress-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/buddypress-dev/attachments/20110710/5d9efd05/attachment.htm>


More information about the buddypress-dev mailing list