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:
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.
-
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 -
WPvivid900,000+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )includes/class-wpvivid-exporter.php:1639 -
Blocksy Companion300,000+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )framework/features/demo-install/export/content-export.php:646 -
Beaver Builder Page Builder100,000+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )includes/export.php:449 -
BetterDocs30,000+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )includes/Admin/XMLExporter.php:614 -
WPS Menu Exporter10,000+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )classes/plugin.php:360 -
LearnPress5,000+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )inc/admin/providers/learnpress/xml/lp-export-item.php:98 -
Select Post Export400+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )includes/select-post-export-class.php:129 -
Kata Plus300+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )includes/backend/wp-export.php:652 -
RSVPMaker300+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )export.php:704 -
Scientific and Interactive Blocks70+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )includes/export.php:714 -
cm4all-wp-impex10+ installs
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )inc/impex-export-extension-content.php:511 -
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.