the_title_export filter-hookWP 5.7.0

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

export_wp()
the_title_export
wp-admin/includes/export.php 552
$title = wxr_cdata( apply_filters( 'the_title_export', $post->post_title ) );

Where the hook is used in WordPress

Usage not found.