export_wp_filename filter-hookWP 4.4.0

Filters the export filename.

Usage

add_filter( 'export_wp_filename', 'wp_kama_export_wp_filename_filter', 10, 3 );
function wp_kama_export_wp_filename_filter( $wp_filename, $sitename, $date ){
	// filter...

	return $wp_filename;
}
$wp_filename(string)
The name of the file for download.
$sitename(string)
The site name.
$date(string)
Today's date, formatted.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

export_wp()
export_wp_filename
wp-admin/includes/export.php 94
$filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date );

Where the hook is used in WordPress

Usage not found.