wpe_get_image_source();

Allows you to grab an image source based on the attachment ID.

Usage

The function echoes out the image source based on the attachment ID and thumbnail size.

Notes

This function is very useful (and recommended) when using image IDs via Advanced Custom Fields.

Example: wpe_get_image_source(123,'thumbnail',false);

Outout: http://www.domain.com/wp-content/uploads/01/01/image-150x150.jpg

If the last option is set to true then the image source will be returned rather than echoed.