post_author_meta_box [ WordPress Function ]
post_author_meta_box ( $post )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: post_custom_meta_box, post_categories_meta_box, post_submit_meta_box, post_format_meta_box, post_tags_meta_box
Display form field with list of authors.
Source
<?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
) );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- post_author_meta_box
Function and Method Cross Reference. post_author_meta_box(). Defined at: /wp -admin/includes/meta-boxes.php -> line 514. No references found.
phpxref.ftwr.co.uk - #18645 (add filter to wp_dropdown_users() in - WordPress Trac
Summary changed from add filter to wp_dropdown_users in post_author_meta_box_who to add filter to wp_dropdown_users() in post_author_meta_box ...
core.trac.wordpress.org - #14572 (post_author_meta_box causes fatal error on site with large ...
My current solution is to disable the post_author_meta_box in wp-admin/edit- form-advanced.php... as I can still change post author, should I need to, through ...
core.trac.wordpress.org - post_author_meta_box (WordPress Function) - WPSeek.com
WordPress lookup for post_author_meta_box, a WordPress Function. wpseek. com is a WordPress-centric search tool for developers and theme authors.
wpseek.com