The value that is passed to your filter is the image ID and not an array or an object. ACF only uses the return value when using get_field() or one of the other functions for getting the value.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.