WordPress filter hook · part of WordPress core

wxr_export_skip_postmeta

A WordPress core filter that 24 plugins also fire themselves, running on 11.9M+ sites between them.

“Filters whether to selectively skip post meta used for WXR exports.”

How to use wxr_export_skip_postmeta

It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'wxr_export_skip_postmeta', function( $value, $meta_key, $meta ) {
	// Change $value here.
	return $value;
}, 10, 3 );

Argument names come from Elementor Agent Ready Website Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

24 plugins that fire wxr_export_skip_postmeta

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Elementor Agent Ready Website Builder icon Elementor Agent Ready Website Builder10+ million installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) core/utils/import-export/wp-exporter.php:538
  2. WPvivid icon WPvivid900,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/class-wpvivid-exporter.php:1129
  3. Blocksy Companion icon Blocksy Companion300,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) framework/features/demo-install/export/content-export.php:603
  4. Formidable Forms icon Formidable Forms300,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) classes/views/xml/posts_xml.php:58
  5. Modula Image Gallery icon Modula Image Gallery100,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/admin/importer/class-modula-importer-exporter.php:122
  6. Beaver Builder Page Builder icon Beaver Builder Page Builder100,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/export.php:406
  7. Kubio AI Page Builder icon Kubio AI Page Builder80,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) lib/src/DemoSites/WXRExporter.php:284
  8. Strong Testimonials icon Strong Testimonials80,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) admin/class-strong-testimonials-debug.php:158
  9. BetterDocs icon BetterDocs30,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/Admin/XMLExporter.php:553
  10. WPS Menu Exporter icon WPS Menu Exporter10,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) classes/plugin.php:321
  11. LearnPress icon LearnPress5,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) inc/admin/providers/learnpress/xml/lp-export-item.php:63
  12. Export Featured Images icon Export Featured Images1,000+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) admin/wpefi-admin.php:385
  13. Select Post Export icon Select Post Export400+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/select-post-export-class.php:86
  14. Kata Plus icon Kata Plus300+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/backend/wp-export.php:609
  15. RSVPMaker icon RSVPMaker200+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) export.php:658
  16. Mattytap Sermons icon Mattytap Sermons70+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/admin/export/class-sm-export-sm.php:400
  17. Scientific and Interactive Blocks icon Scientific and Interactive Blocks70+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/export.php:671
  18. Livewords Flow icon Livewords Flow10+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) admin/xml.php:461
  19. T2 Export icon T2 Export10+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/export_wp.php:415
  20. Advanced Exporter Importer icon Advanced Exporter Importer10+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) libs/exporter-trait.php:327
  21. New Post Automatic XML Backup by Email icon New Post Automatic XML Backup by Email10+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) export-tools.php:95
  22. cm4all-wp-impex icon cm4all-wp-impex10+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) inc/impex-export-extension-content.php:480
  23. Bubok Publisher icon Bubok Publisher10+ installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) export.php:319
  24. BPOTech Export Specific Post icon BPOTech Export Specific PostFewer than 10 installs apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) includes/export-specific-post.php:702

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.