the_title_export
Filters the post title used for WXR exports.
Usage
add_filter( 'the_title_export', 'wp_kama_the_title_export_filter' );
/**
* Function for `the_title_export` filter-hook.
*
* @param string $post_title Title of the current post.
*
* @return string
*/
function wp_kama_the_title_export_filter( $post_title ){
// filter...
return $post_title;
}
- $post_title(string)
- Title of the current post.
Changelog
| Since 5.7.0 | Introduced. |
Where the hook is called
the_title_export
wp-admin/includes/export.php 612
$title = wxr_cdata( apply_filters( 'the_title_export', $post->post_title ) );