WordPress filter hook · part of WordPress core

the_title_export

A WordPress core filter that 6 plugins also fire themselves, running on 81K+ sites between them.

“Filters the post title used for WXR exports.”

How to use the_title_export

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'the_title_export', function( $post_title ) {
	// Change $post_title here.
	return $post_title;
}, 10, 1 );

Argument names come from Kubio AI Page Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

6 plugins that fire the_title_export

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Kubio AI Page Builder icon Kubio AI Page Builder80,000+ installs apply_filters( 'the_title_export', $post->post_title ) lib/src/DemoSites/WXRExporter.php:216
  2. Select Post Export icon Select Post Export400+ installs apply_filters( 'the_title_export', $post->post_title ) includes/select-post-export-class.php:38
  3. WPGeared Better Export icon WPGeared Better Export90+ installs apply_filters( 'the_title_export', $post->post_title ) includes/class-wpgeared-wxr-writer.php:209
  4. Scientific and Interactive Blocks icon Scientific and Interactive Blocks70+ installs apply_filters( 'the_title_export', $post->post_title ) includes/export.php:607
  5. cm4all-wp-impex icon cm4all-wp-impex10+ installs apply_filters( 'the_title_export', $post->post_title ) inc/impex-export-extension-content.php:434
  6. BPOTech Export Specific Post icon BPOTech Export Specific PostFewer than 10 installs apply_filters( 'the_title_export', $post->post_title ) includes/export-specific-post.php:638

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.