Right now we are saving attachment URLs in the option. Wouldn't it be better to save attachment ids instead?
So if its a file, we can use wp_get_attachment_url(). If its an image, we could get full, thumbnail, medium images if we wanted. What do you guys think?
Changing to attachment_id will also break the existing forms as users are already fetching URLs and acting on that.
Right now we are saving attachment URLs in the option. Wouldn't it be better to save attachment ids instead?
So if its a file, we can use
wp_get_attachment_url(). If its an image, we could getfull,thumbnail,mediumimages if we wanted. What do you guys think?Changing to attachment_id will also break the existing forms as users are already fetching URLs and acting on that.