Image size validation
-
Hey, I use the image ACF field with validation turned on, and now I need to check it’s size. But that image field returns only the attachment ID. So first of all I need to get image URL and I use wp_get_attachment_image_src function for that. But the problem is that I can’t get anything from that function. Code I am trying to use is:
$img_src = wp_get_attachment_image_src($value, ‘full’).0;
return $img_src;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Image size validation’ is closed to new replies.