get_admin_users_for_domain [ WordPress Function ]
get_admin_users_for_domain ( $sitedomain = '', $path = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: get_clean_basedomain, get_translations_for_domain, get_blogaddress_by_domain, get_user_to_edit, get_admin_url
Get the admin for a domain/path combination.
Source
<?php
function get_admin_users_for_domain( $sitedomain = '', $path = '' ) {
global $wpdb;
if ( ! $sitedomain )
$site_id = $wpdb->siteid;
else
$site_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $wpdb->site WHERE domain = %s AND path = %s", $sitedomain, $path ) );
if ( $site_id )
return $wpdb->get_results( $wpdb->prepare( "SELECT u.ID, u.user_login, u.user_pass FROM $wpdb->users AS u, $wpdb->sitemeta AS sm WHERE sm.meta_key = 'admin_user_id' AND u.ID = sm.meta_value AND sm.site_id = %d", $site_id ), ARRAY_A );
return false;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- WPMU Functions/get admin users for domain « WordPress Codex
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.
codex.wordpress.org - WordPress › Support » Tags — get_admin_users_for_domain
Username or Email Address Password (forgot?) Register · WordPress › Support » get_admin_users_for_domain. Tag: get_admin_users_for_domain Add New » ...
wordpress.org - Function Reference/get admin users for domain « WordPress Codex
Function Reference/get admin users for domain ... Usage. <?php get_admin_users_for_domain( $sitedomain, $path ); ?> ...
codex.wordpress.org - get_admin_users_for_domain | A HitchHackers guide through ...
Feb 11, 2011 ... function get_admin_users_for_domain( $sitedomain = '', $path = '' ) { global $ wpdb; if ( ! $sitedomain ) $site_id = $wpdb->siteid; else $site_id ...
hitchhackerguide.com
Gebruikersdiscussies [ wordpress.org ]
- skywolfyx1 on "How do you retrieve the admin id of a particular multisite blog?"
- David Sader on "How do you retrieve the admin id of a particular multisite blog?"
- mobile251 on "How do you retrieve the admin id of a particular multisite blog?"
- mobile251 on "How do you retrieve the admin id of a particular multisite blog?"
- David Sader on "How do you retrieve the admin id of a particular multisite blog?"
- Andrea_r on "How do you retrieve the admin id of a particular multisite blog?"
- mobile251 on "How do you retrieve the admin id of a particular multisite blog?"
- David Sader on "How do you retrieve the admin id of a particular multisite blog?"
- mobile251 on "How do you retrieve the admin id of a particular multisite blog?"
- David Sader on "How do you retrieve the admin id of a particular multisite blog?"