bp_current_item()

Return the name of the current item.

Description

Return

(string|bool)

Source

File: bp-core/bp-core-template.php

1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
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

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.