the_excerpt_export
Filter HookDescription
Filters the post excerpt used for WXR exports.Hook Information
File Location |
wp-admin/includes/export.php
View on GitHub
|
Hook Type | Filter |
Line Number | 623 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$post_excerpt
|
Excerpt for the current post. |
Usage Examples
Basic Usage
<?php
// Hook into the_excerpt_export
add_filter('the_excerpt_export', 'my_custom_filter', 10, 1);
function my_custom_filter($post_excerpt) {
// Your custom filtering logic here
return $post_excerpt;
}
Source Code Context
wp-admin/includes/export.php:623
- How this hook is used in WordPress core
<?php
618 *
619 * @since 2.6.0
620 *
621 * @param string $post_excerpt Excerpt for the current post.
622 */
623 $excerpt = wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) );
624
625 $is_sticky = is_sticky( $post->ID ) ? 1 : 0;
626 ?>
627 <item>
628 <title><?php echo $title; ?></title>
PHP Documentation
<?php
/**
* Filters the post excerpt used for WXR exports.
*
* @since 2.6.0
*
* @param string $post_excerpt Excerpt for 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.