bp_current_item()
Return the name of the current item.
Description
Return
(string|bool)
Source
File: bp-core/bp-core-template.php
function bp_current_item() {
$bp = buddypress();
$current_item = !empty( $bp->current_item )
? $bp->current_item
: false;
/**
* Filters the name of the current item.
*
* @since BuddyPress 1.1.0
*
* @param string|bool $current_item Current item if available or false.
*/
return apply_filters( 'bp_current_item', $current_item );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.1.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.