How do I implement this?
I haven’t yet implemented a filter for ACF.
I pasted your code to functions.php, minus the enclosing PHP tags.
I don’t see any new field type added.
Is this supposed to change how the existing URL field type operates, displaying the image?
It doesn’t do that, it just shows the URL.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users