WordPress filter hook · part of WordPress core

wxr_export_skip_commentmeta

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

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

How to use wxr_export_skip_commentmeta

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_commentmeta', 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 →

13 plugins that fire wxr_export_skip_commentmeta

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_commentmeta', false, $meta->meta_key, $meta ) core/utils/import-export/wp-exporter.php:583
  2. WPvivid icon WPvivid900,000+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) includes/class-wpvivid-exporter.php:1639
  3. Blocksy Companion icon Blocksy Companion300,000+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) framework/features/demo-install/export/content-export.php:646
  4. Beaver Builder Page Builder icon Beaver Builder Page Builder100,000+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) includes/export.php:449
  5. BetterDocs icon BetterDocs30,000+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) includes/Admin/XMLExporter.php:614
  6. WPS Menu Exporter icon WPS Menu Exporter10,000+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) classes/plugin.php:360
  7. LearnPress icon LearnPress5,000+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) inc/admin/providers/learnpress/xml/lp-export-item.php:98
  8. Select Post Export icon Select Post Export400+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) includes/select-post-export-class.php:129
  9. Kata Plus icon Kata Plus300+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) includes/backend/wp-export.php:652
  10. RSVPMaker icon RSVPMaker300+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) export.php:704
  11. Scientific and Interactive Blocks icon Scientific and Interactive Blocks70+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) includes/export.php:714
  12. cm4all-wp-impex icon cm4all-wp-impex10+ installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) inc/impex-export-extension-content.php:511
  13. BPOTech Export Specific Post icon BPOTech Export Specific PostFewer than 10 installs apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) includes/export-specific-post.php:745

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.