Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/get admin users for domain

This page redirects to an external site: https://developer.wordpress.org/reference/functions/get_admin_users_for_domain/

Description

Looks up all the admin users for a domain and returns them as an array.

Parameters

$sitedomain
(string) (optional) The site domain to look up.
Default: [blank string]
$path
(string) ( ) The path to look up.
Default: optional

Return Values

(mixed) 
Returns either (boolean) false or an array of users who have admin access for the specified domain.

Usage

<code style="color: #000000"><span style="color: #0000BB"><?php get_admin_users_for_domain</span><span style="color: #007700">(</span><span style="color: #0000BB">$sitedomain</span><span style="color: #007700">, </span><span style="color: #0000BB">$path</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></code>

Notes

In the Spanish version of this article the user notes that this function only seems to work with the main blog.