the_title_export
Filter HookDescription
Filters the post title used for WXR exports.Hook Information
File Location |
wp-admin/includes/export.php
View on GitHub
|
Hook Type | Filter |
Line Number | 605 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$post_title
|
Title of the current post. |
Usage Examples
Basic Usage
<?php
// Hook into the_title_export
add_filter('the_title_export', 'my_custom_filter', 10, 1);
function my_custom_filter($post_title) {
// Your custom filtering logic here
return $post_title;
}
Source Code Context
wp-admin/includes/export.php:605
- How this hook is used in WordPress core
<?php
600 *
601 * @since 5.7.0
602 *
603 * @param string $post_title Title of the current post.
604 */
605 $title = wxr_cdata( apply_filters( 'the_title_export', $post->post_title ) );
606
607 /**
608 * Filters the post content used for WXR exports.
609 *
610 * @since 2.5.0
PHP Documentation
<?php
/**
* Filters the post title used for WXR exports.
*
* @since 5.7.0
*
* @param string $post_title Title of 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.