WordPress at a glance
filter is not described

image_get_intermediate_size filter-hook . WP 4.4.0

Filters the output of image_get_intermediate_size()


add_filter( 'image_get_intermediate_size', 'filter_function_name_3421', 10, 3 );
function filter_function_name_3421( $data, $post_id, $size ){
	// filter...

	return $data;
Array of file relative path, width, and height on success. May also include file absolute path and URL.
The post_id of the image attachment
Registered image size or flat array of initially-requested height and width dimensions (in that order).

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

wp-includes/media.php 851
return apply_filters( 'image_get_intermediate_size', $data, $post_id, $size );

Где используется хук в ядре WordPress

Использование не найдено.