/** * {@inheritdoc} */ protected function render_content() { $profileuser = get_userdata($this->get_item_id()); if ($profileuser->user_email == get_site_option('admin_email') && is_super_admin($profileuser->ID)) { echo '<p>' . __('Super admin privileges cannot be removed because this user has the network admin email.') . '</p>'; } else { parent::render_content(); } }
/** * {@inheritdoc} */ public function render_content() { // @todo Setup $profileuser $profileuser = new stdClass(); if ($profileuser->user_email == get_site_option('admin_email') && is_super_admin($profileuser->ID)) { echo '<p>' . __('Super admin privileges cannot be removed because this user has the network admin email.') . '</p>'; } else { parent::render_content(); } }