image_make_intermediate_size filter-hookWP 2.6.0

Filters the name of the saved image file.

Usage

add_filter( 'image_make_intermediate_size', 'wp_kama_image_make_intermediate_size_filter' );

/**
 * Function for `image_make_intermediate_size` filter-hook.
 * 
 * @param string $filename Name of the file.
 *
 * @return string
 */
function wp_kama_image_make_intermediate_size_filter( $filename ){

	// filter...
	return $filename;
}
$filename(string)
Name of the file.

Changelog

Since 2.6.0 Introduced.

Where the hook is called

WP_Image_Editor_GD::_save()
image_make_intermediate_size
WP_Image_Editor_Imagick::_save()
image_make_intermediate_size
wp-includes/class-wp-image-editor-gd.php 496
'file'      => wp_basename( apply_filters( 'image_make_intermediate_size', $filename ) ),
wp-includes/class-wp-image-editor-imagick.php 728
'file'      => wp_basename( apply_filters( 'image_make_intermediate_size', $filename ) ),

Where the hook is used in WordPress

Usage not found.