Title: Improve function &#8220;export_wp&#8221;
Last modified: February 10, 2022

---

# Improve function “export_wp”

 *  [StephanR](https://wordpress.org/support/users/stephanr-1/)
 * (@stephanr-1)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/improve-function-export_wp/)
 * Hi,
 * The function “export_wp” could be improved for developers use.
 * Here are some suggestions:
 * – To be able to pass in parameters a list of post_id to export
    – To be able 
   to pass in parameters a list of term_id to export
 * – Ability to disable header generation:
 *     ```
       header('Content-Description: File Transfer');
       ....
       ```
   
 * – Add a hook to line 164:
    `$where = apply_filters( 'export_wp_where', $where,
   $args );`
 * Thanks,
 * Regards
 * Stephan Renault
    -  This topic was modified 4 years, 3 months ago by [StephanR](https://wordpress.org/support/users/stephanr-1/).

The topic ‘Improve function “export_wp”’ 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/)

## Tags

 * [improvement](https://wordpress.org/support/topic-tag/improvement/)

 * 0 replies
 * 1 participant
 * Last reply from: [StephanR](https://wordpress.org/support/users/stephanr-1/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/improve-function-export_wp/)
 * Status: not a support question