Created
September 19, 2014 16:37
-
-
Save ethanclevenger91/eb1363f274bd725c91ef to your computer and use it in GitHub Desktop.
Never write two lines of php for an image again
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ws_get_attachment_image_url($id, $size) { | |
$img = wp_get_attachment_image_src($id, $size); | |
return $img[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment