Make WordPress Core

Opened 9 years ago

Last modified 4 years ago

#33461 new enhancement

Allow filtering of meta_value in exporter

Reported by: newkind's profile newkind Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Export Keywords: needs-refresh
Focuses: administration Cc:



There are some filters in the exporter code that allow developers to modify the exported XML data
according to their needs. One filter that is missing is the ability to filter the


field. This can be very helpful ie. to filter out urls or any other data that's being stored there. I'm attaching a patch to be applied to the core.

Attachments (2)

export.patch (825 bytes) - added by newkind 9 years ago.
Patch that allows filtering of meta_value
export.2.patch (847 bytes) - added by newkind 8 years ago.
Changed filter name to post_meta_value

Download all attachments as: .zip

Change History (4)

9 years ago

Patch that allows filtering of meta_value

#1 @newkind
9 years ago

  • Keywords has-patch added

8 years ago

Changed filter name to post_meta_value

#2 @earnjam
4 years ago

  • Keywords needs-refresh added; has-patch removed
  • Version 4.4 deleted

We currently allow filtering the title, the content and the excerpt on export. We also allow skipping the export of individual post meta items or comment meta items, but not modifying them.

I'd be interested in hearing more about the use case for filtering the postmeta output to modify it in the export.

Also a couple of notes about the patch:
1) The name of the filter is too generic and should identify that it's used for exports, similar to the_content_export
2) The patches here in their current form cannot be applied properly. Ideally they should be created from the root of the wordpress-develop directory.

Note: See TracTickets for help on using tickets.