wpseek.com
A WordPress-centric search engine for devs and theme authors
post_author_meta_box › WordPress Function
Since2.6.0
Deprecatedn/a
› post_author_meta_box ( $post )
Parameters: |
|
Defined at: |
|
Codex: |
Display form field with list of authors.
Related Functions: post_custom_meta_box, post_categories_meta_box, post_submit_meta_box, post_format_meta_box, post_slug_meta_box
Source
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', ) ); }