export_wp_filename

export_wp_filename

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('export_wp_filename') is found 1 times:

  • /wp-admin/includes/export.php line 94
    	 * @param string $wp_filename The name of the file for download.
    	 * @param string $sitename    The site name.
    	 * @param string $date        Today's date, formatted.
    	 */
    	$filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date );
    
    	header( 'Content-Description: File Transfer' );
    	header( 'Content-Disposition: attachment; filename=' . $filename );
    	header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
    
    	if ( 'all' !== $args['content'] && post_type_exists( $args['content'] ) ) {