I'd like to give the user the ability to select term meta corresponding to an image in #4, but requiring them to know if the meta value is saved as an attachment ID or not might be asking too much. Instead, we should attempt to auto-detect the meta value format:
- If value is numeric, try
wp_get_attachment_image_url()
- If value is a URL, use it directly
What other ways could an image be stored in term meta?
I'd like to give the user the ability to select term meta corresponding to an image in #4, but requiring them to know if the meta value is saved as an attachment ID or not might be asking too much. Instead, we should attempt to auto-detect the meta value format:
wp_get_attachment_image_url()What other ways could an image be stored in term meta?