Description
Filters the 'wp_image_src_get_dimensions' value.
Occurrences
Filename | Line Number |
---|---|
wp-includes/media.php | 1714 |
Parameters
Type | Name | Description |
---|---|---|
array|false | $dimensions | Array with first element being the width and second element being the height, or false if dimensions could not be determined. |
string | $image_src | The image source file. |
array | $image_meta | The image meta data as returned by 'wp_get_attachment_metadata()'. |
int | $attachment_id | The image attachment ID. Default 0. |
PHP Doc
/**
* Filters the 'wp_image_src_get_dimensions' value.
*
* @since 5.7.0
*
* @param array|false $dimensions Array with first element being the width
* and second element being the height, or
* false if dimensions could not be determined.
* @param string $image_src The image source file.
* @param array $image_meta The image meta data as returned by
* 'wp_get_attachment_metadata()'.
* @param int $attachment_id The image attachment ID. Default 0.
*/