Title: export_wp_filename
Published: December 9, 2015
Last modified: August 20, 2026

---

# apply_filters( ‘export_wp_filename’, string $wp_filename, string $sitename, string $date )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#wp--skip-link--target)

Filters the export filename.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#parameters)󠁿

 `$wp_filename`string

The name of the file for download.

`$sitename`string

The site name.

`$date`string

Today’s date, formatted.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#source)󠁿

    ```php
    $filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/export.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/includes/export.php#L94)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/export.php#L94-L94)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#related)󠁿

| Used by | Description | 
| [export_wp()](https://developer.wordpress.org/reference/functions/export_wp/)`wp-admin/includes/export.php` |

Generates the WXR export file for download.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/export_wp_filename/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexport_wp_filename%2F)
before being able to contribute a note or feedback.