the_content_export
Filter HookDescription
Filters the post content used for WXR exports.Hook Information
File Location |
wp-admin/includes/export.php
View on GitHub
|
Hook Type | Filter |
Line Number | 614 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$post_content
|
Content of the current post. |
Usage Examples
Basic Usage
<?php
// Hook into the_content_export
add_filter('the_content_export', 'my_custom_filter', 10, 1);
function my_custom_filter($post_content) {
// Your custom filtering logic here
return $post_content;
}
Source Code Context
wp-admin/includes/export.php:614
- How this hook is used in WordPress core
<?php
609 *
610 * @since 2.5.0
611 *
612 * @param string $post_content Content of the current post.
613 */
614 $content = wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) );
615
616 /**
617 * Filters the post excerpt used for WXR exports.
618 *
619 * @since 2.6.0
PHP Documentation
<?php
/**
* Filters the post content used for WXR exports.
*
* @since 2.5.0
*
* @param string $post_content Content of the current post.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/export.php
Related Hooks
Related hooks will be displayed here in future updates.