the_excerpt_export
Filters the post excerpt used for WXR exports.
Usage
add_filter( 'the_excerpt_export', 'wp_kama_the_excerpt_export_filter' ); /** * Function for `the_excerpt_export` filter-hook. * * @param string $post_excerpt Excerpt for the current post. * * @return string */ function wp_kama_the_excerpt_export_filter( $post_excerpt ){ // filter... return $post_excerpt; }
- $post_excerpt(string)
- Excerpt for the current post.
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
the_excerpt_export
wp-admin/includes/export.php 623
$excerpt = wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) );