Conversation
supportIf you want to get supports, please visit plugin homepage: http://www.ground6.com/wordpress-plugins/wordpress-exporter/supports/ https://wordpress.org/plugins/wp-exporter/
please find below a small patch for the plugin to tamper the filename of the download. If you like to use it … Index: wp-content/plugins/wp-exporter/wxr.php =================================================================== — wp-content/plugins/wp-exporter/wxr.php (revision 1942) +++ wp-content/plugins/wp-exporter/wxr.php (working copy) @@ -43,6 +43,8 @@ if ( ! empty($sitename) ) $sitename .= ‘.’; $filename = $sitename . ‘wordpress.’ . date( ‘Y-m-d’ ) . ‘.xml’; + $filename = apply_filters(‘wxr_download_filename’, $filename, $args); + header( ‘Content-Description: File Transfer’ ); header( ‘Content-Disposition: attachment; filename=’ . $filename ); header( ‘Content-Type: text/xml; charset=’ . get_option( ‘blog_charset’ ), true );
please find below a small patch for the plugin to tamper the filename of the download. If you like to use it … Index: wp-content/plugins/wp-exporter/wxr.php =================================================================== — wp-content/plugins/wp-exporter/wxr.php (revision 1942) +++ wp-content/plugins/wp-exporter/wxr.php (working copy) @@ -43,6 +43,8 @@ if ( ! empty($sitename) ) $sitename .= ‘.’; $filename = $sitename . ‘wordpress.’ . date( ‘Y-m-d’ ) . ‘.xml’; + $filename = apply_filters(‘wxr_download_filename’, $filename, $args); + header( ‘Content-Description: File Transfer’ ); header( ‘Content-Disposition: attachment; filename=’ . $filename ); header( ‘Content-Type: text/xml; charset=’ . get_option( ‘blog_charset’ ), true );