WordPress at a glance
function is not described

get_editable_user_ids() WP 1.0

Deprecated in 3.1.0. It is no longer supported and can be removed in future releases. Use get_users() instead.

Gets the IDs of any users who can edit posts.

  • Global. wpdb. $wpdb WordPress database abstraction object.

No Hooks.

Return

Array. Array of editable user IDs, empty array otherwise.

Usage

get_editable_user_ids( $user_id, $exclude_zeros, $post_type );
$user_id(int) (required)
User ID.
$exclude_zeros(true/false)
Whether to exclude zeroes.
Default: true

Code of get editable user ids: wp-admin/includes/deprecated.php VER 5.1.1

<?php
function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );

	global $wpdb;

	if ( ! $user = get_userdata( $user_id ) )
		return array();
	$post_type_obj = get_post_type_object($post_type);

	if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) {
		if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros )
			return array($user->ID);
		else
			return array();
	}

	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

	$query = $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s", $level_key);
	if ( $exclude_zeros )
		$query .= " AND meta_value != '0'";

	return $wpdb->get_col( $query );
}