get_editable_authors

Definition:
function get_editable_authors( $user_id ) {}

Parameters

  • int $user_id: User ID.

Return values

returns:List of editable authors. False if no editable users.

Defined filters

  • get_editable_authors
    apply_filters('get_editable_authors', $authors)

Source code

function get_editable_authors( $user_id ) {

	_deprecated_function( __FUNCTION__, '3.1', '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);

}

9465

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: