[buddypress-dev] bp_exists()

Stas Sușcov stas at nerd.ro
Sun Jul 10 11:16:01 UTC 2011


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.



More information about the buddypress-dev mailing list