bp_update_is_item_admin( bool $is_item_admin = false, string $component = '' )
Set the “is_item_admin” global.
Description
Parameters
- $is_item_admin
-
(Optional) Default: false.
Default value: false
- $component
-
(Optional) Component name. Default: the current component.
Default value: ''
Source
File: bp-core/bp-core-functions.php
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 | function bp_update_is_item_admin( $is_item_admin = false, $component = '' ) { if ( empty ( $component ) ) { $component = bp_current_component(); } /** * Filters the "is_item_admin" global value. * * @since BuddyPress 1.5.0 * * @param bool $is_item_admin Whether or not we're "is_item_admin". * @param string $component Component name. Default: the current component. */ buddypress()->is_item_admin = apply_filters( 'bp_update_is_item_admin' , $is_item_admin , $component ); } |
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.