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

Set the “is_item_mod” global.

Description

Parameters

$is_item_mod

(Optional) Default: false.

Default value: false

$component

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

Default value: ''

Source

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

2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
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 BuddyPress 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 );
}

Changelog

Changelog
Version Description
BuddyPress 1.5.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.