[wp-trac] [WordPress Trac] #19863: Add filters to export_wp() process for granular export control
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 20 17:34:50 UTC 2012
#19863: Add filters to export_wp() process for granular export control
---------------------------+-----------------------------
Reporter: scottconnerly | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Export | Version: 3.3.1
Severity: normal | Keywords: needs-patch
---------------------------+-----------------------------
The only hook that allows for export customization right now is
do_action('export_wp'). There should be a filter on the $args in the same
area as well as actions in the export form so additional export filters
can be defined on any post type (especially the custom post types)
Use case example would be the shopping experience I'm building as a
plugin. Administrators need to be able to export order CSVs for
fulfillment systems, inventory systems, accounting systems, etc. I need to
be able to filter by date range as well as some custom taxonomies I have
defined to manage the order's present status.
Then I need to be able to generate CSVs rather than XMLs in the output.
For that I can currently hijack the process at do_action('export_wp'), but
it'd be better if there were hooks all through the export process that
allowed me to output different headers, adjust the query, and manipulate
the retrieved data.
Essentially, we're currently allowed to import any custom post content via
CSV in a bespoke manner, but there's no way to get it back out in a
similar format.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19863>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list