buddypress()

The main function responsible for returning the one true BuddyPress Instance to functions everywhere.


Description Description

Use this function like you would a global variable, except without needing to declare the global.

Example: <?php $bp = buddypress(); ?>


Top ↑

Return Return

(BuddyPress|null) The one true BuddyPress Instance.


Source Source

File: bp-loader.php

function buddypress() {
	return BuddyPress::instance();
}