Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/media.php | apply_filters | 1649 | /** * 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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array|false | $dimensions | Array with first element being the width |
string | $image_src | The image source file. |
array | $image_meta | The image meta data as returned by |
int | $attachment_id | The image attachment ID. Default 0. |