Filter hook 'image_get_intermediate_size'

in WP Core File wp-includes/media.php at line 865

Description

Filters the output of image_get_intermediate_size()

Occurrences

Filename Line Number
wp-includes/media.php 865

Parameters

Type Name Description
array $data Array of file relative path, width, and height on success. May also include file absolute path and URL.
int $post_id The ID of the image attachment.
string|int[] $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

PHP Doc

/**
	 * Filters the output of image_get_intermediate_size()
	 *
	 * @since 4.4.0
	 *
	 * @see image_get_intermediate_size()
	 *
	 * @param array        $data    Array of file relative path, width, and height on success. May also include
	 *                              file absolute path and URL.
	 * @param int          $post_id The ID of the image attachment.
	 * @param string|int[] $size    Requested image size. Can be any registered image size name, or
	 *                              an array of width and height values in pixels (in that order).
	 */