Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_users_of_blog [ WordPress Function ]

get_users_of_blog ( $id = '' )
Parameters:
  • (int) $id Blog ID.
Uses:
  • $wpdb
  • $blog_id
Returns:
  • (array) List of users that are part of that Blog ID
Defined at:



Get users for the blog.

For setups that use the multi-blog feature. Can be used outside of the multi-blog feature.

Source


<?php
function get_users_of_blog$id '' ) {
    
_deprecated_function__FUNCTION__'3.1''get_users()' );

    global 
$wpdb$blog_id;
    if ( empty(
$id) )
        
$id = (int) $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;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics