bp_update_is_item_mod( bool $is_item_mod = false, string $component = '' )

Set the “is_item_mod” global.


Description Description


Parameters Parameters

$is_item_mod

(Optional) Default: false.

Default value: false

$component

(Optional) Component name. Default: the current component.

Default value: ''


Top ↑

Source Source

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

function bp_update_is_item_mod( $is_item_mod = false, $component = '' ) {

	if ( empty( $component ) ) {
		$component = bp_current_component();
	}

	/**
	 * Filters the "is_item_mod" global value.
	 *
	 * @since 1.5.0
	 *
	 * @param bool   $is_item_mod Whether or not we're "is_item_mod".
	 * @param string $component   Component name. Default: the current component.
	 */
	buddypress()->is_item_mod = apply_filters( 'bp_update_is_item_mod', $is_item_mod, $component );
}

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.