bp_is_current_item( string $item = '' )

Check against the current_item.


Description Description


Parameters Parameters

$item

(Optional) The item being checked.

Default value: ''


Top ↑

Return Return

(bool) True if $item is the current item.


Top ↑

Source Source

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

function bp_is_current_item( $item = '' ) {
	$retval = ( $item === bp_current_item() );

	/**
	 * Filters whether or not an item is the current item.
	 *
	 * @since 2.1.0
	 *
	 * @param bool   $retval Whether or not an item is the current item.
	 * @param string $item   The item being checked.
	 */
	return (bool) apply_filters( 'bp_is_current_item', $retval, $item );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.