WordPress at Your Fingertips
function is not described

get_editable_authors() WP 1.0

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

Gets author users who can edit posts.

Hooks from the function


Array|false. List of editable authors. False if no editable users.


get_editable_authors( $user_id );
$user_id(int) (required)
User ID.


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


Deprecated Since 3.1.0 Use get_users()

Code of get_editable_authors() WP 5.8.2

function get_editable_authors( $user_id ) {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );

	global $wpdb;

	$editable = get_editable_user_ids( $user_id );

	if ( !$editable ) {
		return false;
	} else {
		$editable = join(',', $editable);
		$authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );

	return apply_filters('get_editable_authors', $authors);