wp_get_attachment_image_src Wordpress function


Description:

Retrieve an image to represent an attachment.


Syntax:


Arguments:

(int) $attachment_id Image attachment ID.
(string) $size Optional, default is 'thumbnail'.
(bool) $icon Optional, default is false. Whether it is an icon.


Return Type:

(bool|array) Returns an array (url, width, height), or false, if no image is available.


Define At:

wp-includes/media.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×