Filters the ‘wp_image_src_get_dimensions’ value.
Parameters
$dimensionsarray|false- Array with first element being the width and second element being the height, or false if dimensions could not be determined.
$image_srcstring- The image source file.
$image_metaarray- The image meta data as returned by ‘wp_get_attachment_metadata() ‘.
$attachment_idint- The image attachment ID. Default 0.
Source
$dimensions = array(
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.