wpseek.com
A WordPress-centric search engine for devs and theme authors
get_author_user_ids is deprecated since version 3.1.0!
Alternative: get_users()
Alternative: get_users()
get_author_user_ids › WordPress Function
Sincen/a
Deprecated3.1.0
› get_author_user_ids ( No parameters )
Returns: |
|
Defined at: |
|
Codex: |
Get all user IDs.
Related Functions: get_nonauthor_user_ids, get_current_user_id, get_the_author_id, get_author_link, get_author_name
Source
function get_author_user_ids() { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; if ( !is_multisite() ) $level_key = $wpdb->get_blog_prefix() . 'user_level'; else $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels. return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) ); }