Title: the_content_export
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘the_content_export’, string $post_content )

## In this article

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

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

Filters the post content used for WXR exports.

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

 `$post_content`string

Content of the current post.

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

    ```php
    $content = wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) );
    ```

[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#L623)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/export.php#L623-L623)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/the_content_export/?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/the_content_export/?output_format=md#changelog)󠁿

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

## User Contributed Notes

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