export_wp_filename
Filters the export filename.
Использование
add_filter( 'export_wp_filename', 'wp_kama_export_wp_filename_filter', 10, 3 ); /** * Function for `export_wp_filename` filter-hook. * * @param string $wp_filename The name of the file for download. * @param string $sitename The site name. * @param string $date Today's date, formatted. * * @return string */ function wp_kama_export_wp_filename_filter( $wp_filename, $sitename, $date ){ // filter... return $wp_filename; }
- $wp_filename(строка)
- The name of the file for download.
- $sitename(строка)
- The site name.
- $date(строка)
- Today's date, formatted.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
export_wp_filename
wp-admin/includes/export.php 94
$filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date );