- <content:encoded><?php echo wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); ?></content:encoded>
- <excerpt:encoded><?php echo wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) ); ?></excerpt:encoded>
+ <content:encoded><?php
+ /**
+ * Filter the post content used for WXR exports.
+ *
+ * @since 2.5.0
+ *
+ * @param string $post_content Content of the current post.
+ */
+ echo wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) );
+ ?></content:encoded>
+ <excerpt:encoded><?php
+ /**
+ * Filter the post excerpt used for WXR exports.
+ *
+ * @since 2.6.0
+ *
+ * @param string $post_excerpt Excerpt for the current post.
+ */
+ echo wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) );
+ ?></excerpt:encoded>