Title: wxr_export_skip_commentmeta
Published: September 4, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘wxr_export_skip_commentmeta’, bool $skip, string $meta_key, object $meta )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#wp--skip-link--target)

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

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#description)󠁿

Returning a truthy value from the filter will skip the current meta object from 
being exported.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#parameters)󠁿

 `$skip`bool

Whether to skip the current comment meta. Default false.

`$meta_key`string

Current meta key.

`$meta`object

Current meta object.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#source)󠁿

    ```php
    if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) {
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/export.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/export.php#L721)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/export.php#L721-L721)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#related)󠁿

| Used by | Description | 
| [export_wp()](https://developer.wordpress.org/reference/functions/export_wp/)`wp-admin/includes/export.php` |

Generates the WXR export file for download.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wxr_export_skip_commentmeta/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.0.0](https://developer.wordpress.org/reference/since/4.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwxr_export_skip_commentmeta%2F)
before being able to contribute a note or feedback.