bbp_notice_edit_user_is_super_admin()
Super admin privileges notice
Description
Source
File: bp-forums/users/template.php
function bbp_notice_edit_user_is_super_admin() { if ( is_multisite() && ( bbp_is_single_user() || bbp_is_single_user_edit() ) && current_user_can( 'manage_network_options' ) && is_super_admin( bbp_get_displayed_user_id() ) ) : ?> <div class="bp-feedback warning"> <span class="bp-icon" aria-hidden="true"></span> <p><?php bbp_is_user_home() || bbp_is_user_home_edit() ? esc_html_e( 'You have super admin privileges.', 'buddyboss' ) : esc_html_e( 'This user has super admin privileges.', 'buddyboss' ); ?></p> </div> <?php endif; }
Changelog
Version | Description |
---|---|
bbPress (r2688) | 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.