Title: Code enhancement
Last modified: August 22, 2016

---

# Code enhancement

 *  [cjaimet](https://wordpress.org/support/users/cjaimet/)
 * (@cjaimet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/code-enhancement/)
 * I often run multiple imports especially when pulling in content from wordpress.
   com, and having to select authors over and over again is time consuming. So I
   added this line of code to replace the author drop menu at Line 324.
 *     ```
       $_dropmenu = wp_dropdown_users( array( 'echo'=>false, 'name' => "user_map[$n]", 'id' => "user_map[$n]", 'multi' => true, 'show_option_all' => __( '- Select -', 'wordpress-importer' ) ) );
       echo str_replace( '>' . esc_html( $author['author_display_name'] ) . '<', ' selected="selected">' . esc_html( $author['author_display_name'] ) . '<', $_dropmenu );
       ```
   
 * It works well so I thought I’d share..
 * Charles
 * [https://wordpress.org/plugins/wordpress-importer/](https://wordpress.org/plugins/wordpress-importer/)

The topic ‘Code enhancement’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-importer/assets/icon.svg?rev=2791650)
 * [WordPress Importer](https://wordpress.org/plugins/wordpress-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-importer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [cjaimet](https://wordpress.org/support/users/cjaimet/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/code-enhancement/)
 * Status: not resolved