Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get all Super Admin users in WordPress
* Get all Super Admin users on the current site.
* @return array WP_User objects.
function get_all_superadmin_users() {
return get_users([
'login__in' => get_super_admins()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment