WordPress at a glance
function is not described

post_author_meta_box() WP 2.6.0

Display form field with list of authors.

  • Global. Int. $user_ID

No Hooks.

Return

Nothing (null).

Usage

post_author_meta_box( $post );
$post(object) (required)

Code of post author meta box: wp-admin/includes/meta-boxes.php VER 5.0.3

<?php
function post_author_meta_box($post) {
	global $user_ID;
?>
<label class="screen-reader-text" for="post_author_override"><?php _e('Author'); ?></label>
<?php
	wp_dropdown_users( array(
		'who' => 'authors',
		'name' => 'post_author_override',
		'selected' => empty($post->ID) ? $user_ID : $post->post_author,
		'include_selected' => true,
		'show' => 'display_name_with_login',
	) );
}