post_author_meta_box()
最后更新于:2021-11-27 18:49:38
post_author_meta_box( GC_Post$post)Display form field with list of authors.
参数
- $post
-
(GC_Post) (Required)
源文件
文件: gc-admin/includes/meta-boxes.php
function post_author_meta_box( $post ) {
global $user_ID;
?>
<label class="screen-reader-text" for="post_author_override"><?php _e( 'Author' ); ?></label>
<?php
gc_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',
)
);
}