get_author_user_ids

Advertisement

Deprecated Deprecated

This function has been deprecated. Use get_users() instead.

Summery Summery

Get all user IDs.

Syntax Syntax

get_author_user_ids()

Return Return

(array) List of user IDs.

Source Source

File: wp-admin/includes/deprecated.php

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) );
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Advertisement

Leave a Reply