get_users_of_blog [ WordPress Function ]
get_users_of_blog ( $id = '' )
| Parameters: |
|
| Uses: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: add_user_to_blog, get_user_by, add_new_user_to_blog, get_user_option, get_users
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 ]
Top Google zoekresultaten
- Function Reference/get users of blog « WordPress Codex
This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions.
codex.wordpress.org - WordPress › Support » How to replicate get_users_of_blog ...
Hey I'm trying to create a list of authors (w/ desc) for a site I'm making and stumbled on this function, is there a way to achieve similar results with the latest ...
wordpress.org - WordPress › Support » get_users_of_blog() changed in 3.1
up until now this would work in my plugin: $blogusers = get_users_of_blog(); foreach( $blogusers as $user ) { if $user->has_cap( 'whatever' ) do_something(); } ...
wordpress.org - get_users_of_blog (WordPress Function) - WPSeek.com
WordPress lookup for get_users_of_blog, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com