bp_current_component()
Return the name of the current component.
Description Description
Return Return
(string) Component name.
Source Source
File: bp-core/bp-core-template.php
function bp_current_component() {
$bp = buddypress();
$current_component = !empty( $bp->current_component )
? $bp->current_component
: false;
/**
* Filters the name of the current component.
*
* @since 1.0.0
*
* @param string|bool $current_component Current component if available or false.
*/
return apply_filters( 'bp_current_component', $current_component );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |