Definition:
function post_author_meta_box($post) {}
Display form field with list of authors.
Parameters
- object $post
Source code
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
) );
}
2551

February 12, 2011 


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