get_editable_authors() – Gets author users who can edit posts.

You appear to be a bot. Output may be restricted

Description

Gets author users who can edit posts.

Usage

$array|false = get_editable_authors( $user_id );

Parameters

$user_id
( int ) required – User ID.

Returns

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

Source

File name: wordpress/wp-admin/includes/deprecated.php
Lines:

1 to 16 of 16
function get_editable_authors( $user_id ) {
  _deprecated_function( get_editable_authors, '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);
}
 

 View on GitHub View on Trac