wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_users_of_blog is deprecated since version 3.1.0!
Alternative: get_users()
Alternative: get_users()
get_users_of_blog › WordPress Function
Seit2.2.0
Veraltet3.1.0
› get_users_of_blog ( $id = '' )
Parameter: |
|
Siehe: | |
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Get users for the site.
For setups that use the multisite feature. Can be used outside of the multisite feature.Ähnliche Funktionen: add_user_to_blog, get_user_by, add_new_user_to_blog, get_users, get_custom_logo
Quellcode
function get_users_of_blog( $id = '' ) { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; if ( empty( $id ) ) { $id = get_current_blog_id(); } $blog_prefix = $wpdb->get_blog_prefix($id); $users = $wpdb->get_results( "SELECT user_id, user_id AS ID, user_login, display_name, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE {$wpdb->users}.ID = {$wpdb->usermeta}.user_id AND meta_key = '{$blog_prefix}capabilities' ORDER BY {$wpdb->usermeta}.user_id" ); return $users; }