<div><div>
            <div>
                <span>
                    bp_is_active() is what you're looking for.</span></div><div>
                <span><br>--&nbsp;<br>Paul Gibbs<br></span>
                
                <p style="color: #a0a0a0;">On Sunday, 10 July 2011 at 12:16, Stas SuČ™cov wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>Hi,<br>I was looking for a better way to check if the components (my plugin<br>needs) are installed, and stumbled upon `bp_exists()`<br><br>I grep-ed through the BuddyPress codebase, but I couldn't find a usage<br>example, I was also unable to use it like this:<br>`<br>if( !bp_exists( 'xprofile' ) )<br>        wp_die();<br>`<br><br>Is this deprecated?<br><br>Maybe its worth using a profiler tool for the next version to cleanup<br>unreachable blocks of code in BuddyPress.<br><br>_______________________________________________<br>buddypress-dev mailing list<br><a href="mailto:buddypress-dev@lists.automattic.com">buddypress-dev@lists.automattic.com</a><br><a href="http://lists.automattic.com/mailman/listinfo/buddypress-dev">http://lists.automattic.com/mailman/listinfo/buddypress-dev</a><br></div></div></span>
                
                
                
                
                </blockquote>
                
                <div>
                    <br>
                </div>
            </div>
        </div></div>