bbp_notice_edit_user_is_super_admin

Super admin privileges notice.

Description

bbp_notice_edit_user_is_super_admin(); 

Usage

  1. if ( !function_exists( 'bbp_notice_edit_user_is_super_admin' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_notice_edit_user_is_super_admin(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/users/template.php  
  1. function bbp_notice_edit_user_is_super_admin() { 
  2. 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() ) ) : ?> 
  3.  
  4. <div class="bbp-template-notice important"> 
  5. <p><?php bbp_is_user_home() || bbp_is_user_home_edit() ? esc_html_e( 'You have super admin privileges.', bbpress ) : esc_html_e( 'This user has super admin privileges.', bbpress ); ?></p> 
  6. </div> 
  7.  
  8. <?php endif;